- Search for a package in your current sources:apt-cache search [query]- Show information about a package:apt-cache show [package]- Show whether a package is installed and up to date:apt-cache policy [package]- Show dependencies for a package:apt-cache depends [package]- Show packages that depend on a particular package:apt-cache rdepends [package]
Unless the -h, or --help option is given, one of the commands below must be present.
Package: libreadline2 Versions: 2.1-12(/var/state/apt/lists/foo_Packages), Reverse Depends: libreadlineg2,libreadline2 libreadline2-altdev,libreadline2 Dependencies: 2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null)) Provides: 2.1-12 - Reverse Provides:
Separate arguments can be used to specify multiple search patterns that are and'ed together.
Note that a package which APT knows of is not necessarily available to download, installable or installed, e.g. virtual packages are also listed in the generated list.
The resulting nodes will have several shapes; normal packages are boxes, pure virtual packages are triangles, mixed virtual packages are diamonds, missing packages are hexagons. Orange boxes mean recursion was stopped (leaf packages), blue lines are pre-depends, green lines are conflicts.
Caution, dotty cannot graph larger sets of packages.
All command line options may be set using the configuration file, the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like -f-,--no-f, -f=no or several other variations.
--no-pre-depends, --no-depends, --no-recommends, --no-suggests, --no-conflicts, --no-breaks, --no-replaces, --no-enhances
Sources and Packages can be compressed in any format apt supports as long as they have the correct extension. If you need to store multiple of these files in one directory you can prefix a name of your choice with the last character being an underscore ("_"). Example: my.example_Packages.xz
Note that these sources are treated as trusted (see apt-secure(8)). Configuration Item: APT::Sources::With.
apt.conf(5), sources.list(5), apt-get(8)
apt-cache returns zero on normal operation, decimal 100 on error.
m[blue]APT bug pagem. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.