Debian / Ubuntu: Search For Packages Using Apt Command Line

www.laut‮ut‬ri.com
Debian / Ubuntu: Search For Packages Using Apt Command Line

To search for packages using the apt command line utility in Debian or Ubuntu, you can use the search subcommand.

Here is an example of how to use the apt search command to search for packages:

apt search pattern

This command searches for packages whose names or descriptions match the specified pattern and displays a list of the matching packages.

You can also use the -s option to search for packages in a specific repository or the -f option to search for packages that contain a specific file.

For example, to search for packages in the universe repository that contain the file libc.so.6, you can use the following command:

apt search -s universe -f libc.so.6

By using the apt search command, you can search for packages using various options and patterns. It's always a good idea to carefully review the documentation and use the appropriate options and syntax when working with apt. This will help ensure that your search is accurate and efficient.

Created Time:2017-10-28 14:02:27  Author:lautturi