How to List All Installed Packages on Ubuntu Linux –

Ubuntu is one of the most popular and secure open source operating systems out there today. Many are those who opt for this system as an alternative with better Windows tools, it also has different advanced tricks and shortcuts .

If you use this system, you will have already realized that it has multiple advantages with programs that you can install for free. And if you don’t have it yet, you can install Linux on your computer . These programs are made by the community that Linux has developed over time.

However, it may happen that you want to know how many packages you have installed on your PC but you don’t know how to do it. This problem is very common for new Ubuntu users, as they are not familiar with the features that Ubuntu has.

But don’t worry, we have prepared this article for you to show you how to list all the packages you have installed. All you have to do is follow the steps that we are going to show you below and in a short time you will have this list.

What is a package?

First of all, before continuing with the guide we are going to talk a little about the packages you have installed in Ubuntu. So if you are new to this world you can learn more about this operating system and its characteristics.

That said, let’s start with the explanation, it is known as a “Package” to a compressed and structured file to be used as a Software management tool . With it the user can perform operations such as install, compile, delete and thumb the system configuration files.

Among the most popular types of packages there are 2 types which are “Binary” and those of “source code”. Binary packages contain all the information necessary to rebuild programs from scratch without having it on the same computer.

Instead, the source code is only compressed files of the source code of the installed programs that need to be collected and installed. These make up most of the packages you can find on your PC and listing them is an easy way to know which ones you have.

The procedure required to run the package list is very simple and you don’t need to be an expert programmer to do it. Just let yourself be guided by the steps that we are going to show you below and you will see that in a short time you will be able to create the list of packages. Don’t forget that it is also possible to run Windows games and applications on Linux .

How to list all packages installed in Ubuntu?

The procedure is easy, you just need to execute a command on your PC to obtain it, making it one of the basic tools in this system. Next, we will show you how to run the list of packages installed in Ubuntu so that you can do it every time you doubt the existence of a package.

To do this you will use the program “dpkg-query” that will do the job of listing the packages you have on your pc. If you have any problem or do not know how to run this program, we advise you to ask for help from Linux technical support to solve it.

Step 1

The first thing you should do is run the “dpkg-query” program to be able to create the list of packages you have installed. The following will be to enter the following command and execute it to obtain the list of packages:

  • dpkg-query -W -f = ‘$ {Installed-Size} $ {Package} \ n’ | sort –n

Step 2

Running this program you will have the list from smallest to largest but however if you don’t need to check a specific package you can also do it. All you have to do is run a slightly different command than the one we showed you above. For example, if you need to find the package called Gimp use the following command:

  • dpkg-query -W -f = ‘$ {Installed-Size} $ {Package} \ n’ | sort -n | grep Gimp

As you can see, it is the same command, only that at the end you must add “grep” followed by the name of the package that interests you. By doing this, a list will appear with all the packages that you have installed with the name you write.

And voila, with this knowledge you will be able to make the list of all the packages that you have installed in your Ubuntu operating system. We hope this article has been useful to you and we invite you to continue researching all the versions and features of the Linux system .


by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment