-l, --list [package-name-pattern...]
List packages matching given pattern. If no package-name-pattern is given, list all packages in
/var/lib/dpkg/status, excluding the ones marked as not-installed (i.e. those which have been
previously purged). Normal shell wildchars are allowed in package-name-pattern. Please note you
will probably have to quote package-name-pattern to prevent the shell from performing filename
expansion. For example this will list all package names starting with “libc6”:
|
-s, --status package-name...
Report status of specified package. This just displays the entry in the installed package status
database. When multiple package-name are listed, the requested status entries are separated by an
empty line.
|
-L, --listfiles package-name...
List files installed to your system from package-name. When multiple package-name are listed, the
requested lists of files are separated by an empty line. However, note that files created by
package-specific installation-scripts are not listed.
-c, --control-path package-name [control-file]
List paths for control files installed to your system from package-name. If control-file is
specified then only list the path for that control file if it is present. Warning: this command is
semi-public, it should be used only as a last resort solution, and if no other interface is
available. It might get deprecated later on if better interfaces or the current architectural
deficiencies have been solved.
|
-S, --search filename-search-pattern...
Search for packages that own files corresponding to the given pattern. Standard shell wildchars
can be used in the pattern. This command will not list extra files created by maintainer scripts,
nor will it list alternatives.
|
-p, --print-avail package-name...
Display details about package-name, as found in /var/lib/dpkg/available. When multiple package-
name are listed, the requested available entries are separated by an empty line.
Users of APT-based frontends should use apt-cache show package-name instead as the available file
is only kept up-to-date when using dselect.
|
-h, --help
Show the usage message and exit.
|
--version
Show the version and exit.
|
--admindir=dir
Change the location of the dpkg database. The default location is /var/lib/dpkg.
|
-f, --showformat=format
This option is used to specify the format of the output --show will produce. The format is a
string that will be output for each package listed.
|