Forrest logo
tool overview
On this page you find all important commands for the CLI tool dpkg-query. If the command you are looking for is missing please ask our AI.

dpkg-query

Dpkg-query is a command-line tool used in Debian-based systems for querying information about installed packages. It provides a comprehensive interface to interact with the Debian package management system.

With dpkg-query, you can obtain information about packages, such as their names, versions, architectures, installed sizes, and more.

One of the common uses of dpkg-query is to list all installed packages, which can be useful for system maintenance and troubleshooting.

You can also use dpkg-query to search for specific packages based on their name or other attributes. This helps in finding packages related to a particular functionality or verifying the presence of specific packages.

Additionally, dpkg-query can be used to get detailed information about a specific package, including its dependencies, maintainers, and other metadata.

The tool can list files associated with a package, allowing you to see which files are installed by a particular package or check for the existence of a specific file.

Furthermore, dpkg-query provides options for querying different types of packages, such as those on which no other package depends or those that are not required by any package.

You can use dpkg-query in scripting to automate package-related tasks or extract specific information for further analysis.

Dpkg-query utilizes the dpkg database to access package information, ensuring reliable and accurate results.

Overall, dpkg-query is a powerful and versatile tool for package management in Debian-based systems, providing essential insights into the installed packages.

List of commands for dpkg-query:

tool overview