How to get list of installed packages on Ubuntu / Debian Linux

You can use the dpkg command to list all installed packages on an Ubuntu or Debian system. The following command will produce a list of all installed packages and their versions:

dpkg --list

You can also use the apt list command to list the installed packages and their versions, as well as the status of each package:

apt list --installed

Alternatively, you can use the dpkg-query command to produce a list of all installed packages, along with their versions, descriptions, and architectures:

dpkg-query -l

You can also use various options with the dpkg-query command to filter the list of packages based on different criteria, such as package name, version, or status. For more information, you can refer to the man page for dpkg-query:

man dpkg-query

(website)

Leave a Comment