

apt-get, so that it can be outdated if the last update is too long ago, but in exchange apt-cache works independently of the availability of the configured sources (e.g. The metadata is acquired and updated via the ‘update’ command of e.g. apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. Using apt-cache CommandĪpt-cache performs a variety of operations on APT’s package cache. If you wish to see the version of installed firefox package, run the following command:Īpt list firefox 2. It supports patterns for matching package names as well as options to list installed (–installed), upgradeable (–upgradeable) or all available (–all-versions) versions.

Using apt command with argument list is somewhat similar to dpkg-query –list in that it can display a list of packages satisfying certain criteria.
