Get List of Installed packages on Ubuntu 20.10

28/12/2020
Ubuntu is a Linux based distribution that comes with many packages installed. Packages are a collection of files that require to build software. For example, if you want to install an application the first thing you do is download a package file through APT. The package is downloaded and compiled in the operating system in the form of an application. You can download and install as many packages as you want using APT.

It is essential to know about all the packages that are installed. The good thing about Ubuntu is that you can get particulars of all the packages and manage them.

How to get details about all the installed packages on Ubuntu 20.10? Let’s shed light on it.

Listing the Installed Packages

To list packages that are installed, we use the “dpkg” command. To run this command, first launch terminal, and type:

$ dpkg –list


The above command will list all the packages in five columns. The first column shows the status of the package. The “ii” indicates that the package is installed. The first “i” shows the desired package state, and the second “i” indicates the current state of the package. The other state indications are listed below:


The second column is simply the labels of the packages. The third column depicts the package version. The package architecture is shown in the fourth column. Lastly, the fifth column provides a short explanation of the package.

Finding a Particular Package

If you have Ubuntu installed on your computer and want to search for a specific package and its current state, you can easily learn that through the terminal. For example, if you want to search whether the openssh server is installed or not, just type the following command:

$dpkg –list | grep –openssh


You can search for other packages as well, for example, Wireshark:

$dpkg –list | grep –wireshark


From the above output, you can even read the architecture and version of the package.

You can refine your search by adding more conditions, for instance, if you want to search a package by its version, then type the following command:

$dpkg –list | grep –nano | wireshark 3.2


The red numbers in the above image indicate the version number of the Wireshark.

You can add more conditions by adding more “grep” commands.

The Number of Packages Installed

In your operating system, there will be a lot of packages. You can even get the total number of installed packages on your computer, but it is a little bit tricky command. To get the total number of packages, you need to count the number of lines from the “dpkg –list” command output.

The above output shows that there are 5 lines above before the list of packages, just subtract 5 lines. Then type the following command:

echo $((dpkg list | wc – l ’ – 5))


You can see the total number of packages installed on my Ubuntu machine.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Upgrade Ubuntu to 1804

How to Upgrade from Ubuntu 17.10 to 18.04 Ubuntu 18.04 Bionic Beaver is not out yet. But many people may want to upgrade...
28/12/2020

How to install RawTherapee 5 on Ubuntu, Linux Mint

RawTherapee 5 the most recent release, is a powerful free cross-platform raw photo processing program and written in C++...
12/02/2020

Snap Universal Packages for Linux

The Snaps are universal Linux packaging system developed by Canonical and Ubuntu.  Snaps are like RPMs but are more self...
12/02/2020
Bài Viết

Bài Viết Mới Cập Nhật

Mua proxy v4 chạy socks5 để chơi game an toàn, tốc độ cao
18/05/2024

Thuê mua proxy Telegram trọn gói, tốc độ cao, giá siêu hời
18/05/2024

Thuê mua proxy Viettel ở đâu uy tín, chất lượng và giá tốt? 
14/05/2024

Dịch vụ thuê mua proxy US UK uy tín, chất lượng số #1
13/05/2024

Thuê mua proxy Việt Nam: Báo giá & các thông tin MỚI NHẤT
13/05/2024