The apt-cache
command can display much of the information stored in APT's internal database. This information is a sort of cache since it is gathered from the different sources listed in the sources.list
file. This happens during the apt update
operation.
The apt-cache
command can do keyword-based package searches with apt-cache search keyword
. It can also display the headers of the package's available versions with apt-cache show package
. This command provides the package's description, its dependencies, the name of its maintainer, etc. Note that apt search
, apt show
, aptitude search
, aptitude show
work in the same way.
Algunas funcionalidades son menos utilizadas. Por ejemplo, apt-cache policy
muestra las prioridades de los orígenes de paquete así como también las prioridades de paquetes individuales. Otro ejemplo es apt-cache dumpavail
que muestra las cabeceras de todas las versiones disponibles de todos los paquetes. apt-cache pkgnames
muestra una lista con todos los paquetes que aparecen al menos una vez en el caché.