[Ilugc] One Day One GNU/Linux Command (APT-CACHE)

Bharathi Subramanian sbharathi at MidasComm.Com
Wed Dec 3 09:31:51 IST 2008

One Day One GNU/Linux Command 

apt-cache -- Debian APT (Advanced Package Tool) package handling


apt-cache performs a variety of operations on APT's package cache.  
apt-cache does  not  manipulate the state of the system, but does
provide operations to search and generate interesting output from 
the package meta-data (/var/lib/apt/lists).


$ apt-cache search xfree86 -- Show package info and descriptions for 
                              the search-string (xfree86).

$ apt-cache policy gcc -- Show version and priorities of the available 

$ apt-cache show postgresql -- Show detailed description of postgresql

$ apt-cache showpkg mozilla -- Show all kind of dependencies for the 
                               Mozilla package.

$ apt-cache depends mozilla -- List the packages needed by Mozilla.

$ apt-cache rdepends kde -- List all packages that needs KDE.

Read: man apt-cache

Debian Mirror: http://ftp.iitm.ac.in/linux/
Debian Docs  : http://www.debian.org/doc/

HTH :)
Bharathi S

More information about the ilugc mailing list