List Installed Packages with dpkg-query. dpkg-query is a command line that can be used to display information about packages listed in the dpkg database.
Checking if a specific package is installed using dpkg: To check if a specific package is installed on Debian based Linux distributions, you can use the dpkg command followed by the -s (status) flag and the package name. The command below shows an example of dpkg, used to check the status of the package Steam. dpkg -s steam
To check if packagename was installed, type: dpkg -s <packagename>. You can also use dpkg-query that has a neater output for your purpose, and accepts wild ...
14.11.2019 · Debian or Ubuntu Linux log package status changes and actions to a file. The default is /var/log/dpkg.log file. This file has log message in the following format: Log messages are of the form ‘YYYY-MM-DD HH:MM:SS status state pkg installed-version’ for status change updates; ‘YYYY-MM-DD HH:MM:SS action pkg installed-version available ...
19.07.2015 · If the package was installed, you'd see (/var/lib/dpkg/status) at the end of the line. However, this isn't fully reliable, because you'd also see this indication if the package was known to your system but not fully installed, e.g. if it was in the “package uninstalled but configuration files left over” state. A more useful apt-cache ...
23.05.2021 · The apt command has an option list that you can use to check a version of the package installed on an Ubuntu or Debian system. For example, to check a version of the curl package installed on my Ubuntu/Debian server, I’d run: $ apt list curl Listing...
13.02.2019 · dpkg-query is a command line that can be used to display information about packages listed in the dpkg database. To get a list of all installed packages type: sudo dpkg-query -l | less The command will display a list of all installed packages including the packages versions, architecture, and a short description.