LinuxMoz

Linux Stuff && Coffee

Apt-get Search Package (Using Apt-cache)

| Comments

How to search for packages using APT the Debian package manager used by Ubuntu & Linux Mint.

The first part of the apt-get search command is updating the mirror:

1
apt-get update

Next we can perform a apt-cache search, apt-cache is the local cached copy of the mirror package list a small cached database of all the packages that exist on the mirrors specified in your sources.list file.

1
apt-cache search nmap

`

The above command will return the following output (screenshot from a Debian server): apt-get search

After you complete your apt-get search (using the apt-cache command above) you can install the package using apt-get install.

Comments