How to List Installed Packages on Ubuntu 22.04

Listing installed packages on operating systems, such as Ubuntu, is essential to manage your system effectively. Listing packages can serve multiple purposes, such as troubleshooting, system maintenance, and optimizing your operating system. 

Moreover, by inspecting these packages, you can identify and remove any unnecessary and unwanted packages from the system.

Through this guide, you can check for listing installed packages on Ubuntu 22.04 through this guide.

How to List Installed Packages on Ubuntu 22.04?

In this article, we will implement three (3) different methods to list the installed packages on Ubuntu 22.04. These methods are:

  1. List Installed Packages Using APT
  2. List Installed Packages Via DPKG
  3. List Installed Packages Through Snap

Method 1: List Installed Packages Using APT

Utilize the APT package manager to show installed packages on your Ubuntu machine through these different options.

Option 1: List All Installed Packages

Run the command presented below to provide a comprehensive list of all installed packages on your terminal screen:

apt list --installed
apt list --installed
apt list --installed

This command will give you a detailed list of installed packages along with its version number.

Option 2: List Installed Package by Specific Name 

You can also use the APT command to search installed packages on Ubuntu containing the specific name of package, for example “python”:

apt list --installed | grep python
apt list --installed
apt list --installed

In the above output, the command returns only the specific package on your Ubuntu 22.04 terminal. 

Option 3: List Manually Installed Packages

To show a list of packages on Ubuntu that you have manually installed through using the command:

apt-mark showmanual
apt-mark showmanual
apt-mark showmanual

You will see the only list of those packages that have been installed by you, manually.  

Additionally, you can use the provided command to count the number of manually installed packages on your system:

apt-mark showmanual | wc -l
apt-mark showmanual

In your terminal, you will find only the total count of the installed packages after executing the command.

Method 2: List Installed Packages Via DPKG

The following commands will be used for listing and viewing the installed packages using dpkg, a package manager.

Option 1: List All Installed Packages 

You can use the dpkg followed by the –list option to view a detailed list of all installed packages:

dpkg --list
dpkg --list

The above command displays a table of installed packages including their name, version, and architecture of the packages. 

Option 2: List Installed Package by Specific Name 

If you are searching for a specific package, such as “python,” on your Ubuntu 22.04 system, execute the following command:

dpkg -l | grep python
dpkg -l
dpkg -l

The command will filter the rest of the installed packages and provide you the list only containing “python”.

Option 3: List Exclude Deinstalled Packages

Run the command to list only installed packages, excluding those marked for removal (deinstall):

dpkg --get-selections | grep -v deinstall
dpkg --get-selections
dpkg --get-selections

The command, after executing, will provide a list of installed packages on your terminal screen. 

Method 3: List Installed Packages Through Snap

You can use the snap package manager to list the installed packages on your Ubuntu 22.04 system.

Option 1: List Installed Snap Packages

With the help of the provide command, you can view a list of installed Snap packages on your Ubuntu system:

snap list
snap list

After executing the command, a tabular list will be shown on your Ubuntu terminal containing the name of the package, version, and more.

Conclusion

Ubuntu 22.04 offers various command-line tools for listing installed packages. Whether utilizing apt, dpkg, or snap, these methods provide simple management tools, including viewing installed packages on your system.

Ubuntu 22.04 offers various command-line tools like apt, dpkg, and snap to list the installed packages on your Ultahost’s Linux VPS Host. You can choose the option that best suits your needs.

FAQ

How do I list all installed packages on Ubuntu 22.04?
How can I filter the installed packages to display specific ones?
How do I get a list of installed packages along with their versions?
Can I list installed packages using APT (Advanced Package Tool)?

Related Post

How to Install PostgreSQL on Ubuntu

PostgreSQL, also known as Postgres is a powerful open-s...

How to Change the Timezone in Ubuntu

Ubuntu a popular Linux distribution allows users to adj...

How to Install UFW on Ubuntu 22.04

In Ubuntu 22.04, UFW stands for Uncomplicated Firewall....

How to Check Disk Free Space on Linux

Checking and managing free space on your system disk is...

How to Install Wine on Ubuntu 22.04

Wine is a third-party tool that helps you to operate Wi...

How to Install Plesk on Linux

Plesk is a comprehensive web hosting control panel desi...

Leave a Comment