Search Packages with apt-cache search

Surfing the internet I fount this command

$apt-cache search <keyword>

It is helpful to search for packages related to keyword we gave, when we don’t know exact name of package. 

apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata.

Here you are performing a query against the information stored on your local machine for available packages. This is the cache from your “subscribed” repositories. That is, the command is performing a query against the repositories that you have set up in USC(Ubuntu Software Center) or Synaptic. /etc/apt/sources.list is the location to fetch information from in the query.

Example:

$apt-cache search painting

It will return a list of all packages whose name or description contains the keyword “painting” 

Similarly try with

$apt-cache search puzzle

It will return a list of all packages whose name or description contains the keyword “puzzle” 

 

 

Advertisements

About Jasleen Kaur

Hi, I am Jasleen kaur, a Computer Science Student.
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Search Packages with apt-cache search

  1. Nice post. I want to copy all the texlive-full (Latex) packages(with dependencies) together, so that my other friends can also install Latex from that. Is there any way to do so? One of my friend manually copied these from /var/cache/apt/archieves/ but I got only 500mb of packages. As while installing errors like Broken packages were arise as the original size is around 1.6 GB.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s