Description

Once we start managing a Ubuntu/Linux machine, we need to search and install several packages on the machine.

Command-line provides some useful commands to search for available applications as mentioned below.

Commands

Here are some useful commands that can be run on a command line to search for available packages.

The below command searches for a specific package by a string (its "python" in the below example), which fetches all the packages containing that string in their names.

> apt-cache search python

The below command lists all the available packages, where the search string is a period sign (.).

> apt-cache search .

Related Links