How to list installed packages on Debian

This short guide shows you how to get a list of all installed Packages on Debian Linux. Packages on Debian get installed with the apt package installer. We will use the dpkg command, which is part of the apt toolset, to query the installed packages database.

Get all installed Debian packages

dpkg --get-selections

As you can see, this command will show you a rather long list. To save the list to a file, use this command:

dpkg --get-selections > /tmp/packages.txt

We save the list in the file /tmp/packages.txt.

To scroll step by step through the package list, use:

dpkg --get-selections | more

Here is the result:

Sponsored

Sponsored

If you seek a specific package, use the grep command:

dpkg --get-selections | grep nginx

will show you all packages that contain the word “Nginx” in their name.

Example:

root@sv1:/# dpkg --get-selections | grep nginx
nginx-common                                    install
nginx-extras                                    install

The post How to list installed packages on Debian appeared first on FAQforge.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

2 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

3 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

3 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

4 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

4 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

6 days ago