Ubuntu, Debian, Kali, Mint Apt-Get Search Tutorial with Examples

Ubuntu, Debian, Mint, Kali and other related distributions uses apt-get as package manager. All of these distributions are deb or dpkg related distributions. apt-get provides different type of commands to list, search, install, remote, revert etc. Detailed information about apt-get can found in the following tutorial.


In this tutorial we will look apt-cache search command in detail.

Search Packages

We can search deb packages from repositories with the following command by providing a search term. In this example we will search for tmux keyword.

$ apt-cache search tmux

Search Package Names Only

In previous example we have search the given term all package information like package name, description, text etc. We can make a search only in the package names with --names-only . In this example we will search for apache only in the packages names part.

$ apt-cache search --names-only apache
Search Package Names Only
Search Package Names Only

Search Part Of Text

If we do not know the whole keyword to search we can use glob * to imply. In this example we want to search packages for term starts with apache .

$ apt-cache search apache*
Search Part Of Text
Search Part Of Text

List All Packages with Apt-Search

We can use glob or regex single character . to list all packages with the apt-cache search

$ apt-cache search *


$ apt-cache search .

LEARN MORE  Apt Command "Hash Sum mismatch" Error and Solution On Ubuntu, Debian, Mint, Kali

Leave a Comment