Display information about packages listed in the dpkg database. You can also use dpkg-query as a backend for dpkg, instead of calling dpkg-query directly.
Print help information and exit.
List packages whose names match any of the specified patterns. With no pattern specified, list all packages in /var/lib/dpkg/status. The pattern may need to be in quotes to avoid expansion by the shell.
List files installed on your system from each of the specified packages. This command does not list files created by package-specific installation scripts.
Print the license information and exit.
Display details for the specified package, as found in /var/lib/dpkg/available.
Report on the status of the specified package.
Search the installed packages for filenames matching one of the specified patterns. At least one pattern must be specified.
Like -l, but the output can be customized with the --showformat option.
Print version information and exit.
Use dir as the location of the dpkg database. The default is /var/lib/dpkg.
Specify the output format for -W/--show. The format can include the standard escape sequences \n (newline), \r (carriage return), or \\ (backslash). Specify package ...