Skip to content
Follow
Ubuntu Linux

How to List Installed Packages on Ubuntu Linux

Richard
Written by
Richard
Oct 17, 2021 Updated Jul 14, 2026 3 min read
How to Display Seconds on Ubuntu Top Menu Clock
How to Display Seconds on Ubuntu Top Menu Clock

Listing installed packages on Ubuntu Linux means seeing all the software you’ve put on your computer.

You can do this by opening the terminal and typing a specific command. For example, the command `apt list –installed` shows every application and library currently on your Ubuntu system. This is super helpful for keeping track of what software you have.

Knowing your installed packages helps you manage updates and understand your system better. Ubuntu 22.04 LTS and newer versions make this easy. Another command, `dpkg –get-selections`, also gives you a complete list of everything installed.

⚡ Quick Answer

Open your terminal and run the command sudo apt list –installed. This will display a list of all software packages currently installed on your Ubuntu system. You can also use sudo dpkg-query -l for an alternative format.

How to list packages with apt on Ubuntu Linux.

You can easily list all installed packages on Ubuntu using the apt command. Just open your terminal and type `sudo apt list –installed`. This shows you every program installed on your computer, its version, and type, giving you a complete picture of your software.

Run the commands below to see all the installed packages on Ubuntu Linux using apt.

🐧Bash / Shell
sudo apt list --installed

When you run the commands above, it will list all installed packages, including information about the package’s versions and architecture.

💻Code
Listing... Done
accountsservice/focal-updates,focal-security,now 0.6.55-0ubuntu12~20.04.4 amd64 [installed,automatic]
acl/focal,now 2.2.53-6 amd64 [installed,automatic]
acpi-support/focal,now 0.143 amd64 [installed,automatic]
acpid/focal,now 1:2.0.32-1ubuntu1 amd64 [installed,automatic]
adduser/focal,focal,now 3.118ubuntu2 all [installed,automatic]
adwaita-icon-theme/focal-updates,focal-updates,now 3.36.1-2ubuntu0.20.04.2 all [installed,automatic]
aisleriot/focal,now 1:3.22.9-1 amd64 [installed,automatic]
alsa-base/focal,focal,now 1.0.25+dfsg-0ubuntu5 all [installed,automatic]
alsa-topology-conf/focal,focal,now 1.2.2-1 all [installed,automatic]
alsa-ucm-conf/focal-updates,focal-updates,now 1.2.2-1ubuntu0.10 all [installed,automatic]

If the list of installed packages is long, you can pipe the output to less to make it easy to read and create a page break. Press the space bar to move to the next screen.

🐧Bash / Shell
sudo apt list --installed | less

How to list packages with dpkg-query on Ubuntu Linux

The dpkg-query command offers another straightforward way to list installed packages on Ubuntu. Running `sudo dpkg-query -l` in your terminal displays a detailed list of all programs set up on your computer, making it simple to check your installed software.

Run the commands below to list installed packages using the dpkg-query command.

🐧Bash / Shell
sudo dpkg-query -l

You can also pipe the command to less to create and make it easier to read, as above.

🐧Bash / Shell
sudo dpkg-query -l | less

You should see a similar list as the one below.

💻Code
||/ Name                                       Version                               Architecture Description
+++-==========================================-=====================================-============-=====================>
ii  accountsservice                            0.6.55-0ubuntu12~20.04.4              amd64        query and manipulate >
ii  acl                                        2.2.53-6                              amd64        access control list ->
ii  acpi-support                               0.143                                 amd64        scripts for handling >
ii  acpid                                      1:2.0.32-1ubuntu1                     amd64        Advanced Configuratio>
ii  adduser                                    3.118ubuntu2                          all          add and remove users >
ii  adwaita-icon-theme                         3.36.1-2ubuntu0.20.04.2               all          default icon theme of>

The pkg-query list is formatted appropriately, as you can see above.

If you want to be a little fancy, you can count the number of packages installed by running the commands below.

🐧Bash / Shell
sudo dpkg-query -f '${binary:Package}n' -W | wc -l

The command above should output several packages installed on Ubuntu.

That should do it!

Conclusion:

  • Listing installed packages on Ubuntu Linux is essential for system management and security.
  • Both the apt and dpkg-query commands provide efficient ways to view installed packages.
  • Using the less command with either of these commands makes it easier to navigate long lists.
  • The ability to count installed packages helps assess the system’s complexity and manageability.
  • Knowing how to list installed packages is a fundamental skill for students and new users learning Linux.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install Additional Software on Ubuntu
Ubuntu Linux How to Install Additional Software on Ubuntu
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Install osTicket with Apache on Ubuntu Linux
CMS How to Install osTicket with Apache on Ubuntu Linux

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *