Package / system tool

apt-cache — Debian family

apt-cache is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.

Availability: Debian and Ubuntu releases; package sources and privileges vary.中文

Syntax

apt-cache command [arguments]

Examples

apt-cache is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.

apt-cache policy nginx

Show command help and options where supported.

apt-cache --help

Parameters, options and clauses

Option / clauseDescription
search <pattern>Search package names and descriptions.
show <package>Display package metadata.
policy <package>Show installed/candidate versions and their sources.
depends <package>List declared package dependencies.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory