How you can List Installed Packages in Ubuntu With APT

How you can List Installed Packages in Ubuntu With APT

This guide is about How you can List Installed Packages in Ubuntu With APT. So read this free guide, How you can List Installed Packages in Ubuntu With APT step by step. If you have query related to same article you may contact us.

How you can List Installed Packages in Ubuntu With APT – Guide

Here’s how you can use Ubuntu’s default package manager to get a list of the packages currently installed on your system.

When you want to remove unwanted software from your system, having a list of all installed packages right in front of you can help. On Ubuntu, APT makes it easy for users to get a list of packages currently installed on their system.

In that guide, you will learn how to list packages installed on Ubuntu using APT, the default package manager on Debian-based distributions.

Get a list of packages installed on Ubuntu

To generate a list of packages currently installed, upgradable ​​or available in Ubuntu, you can use the List method of the APT command. To print only packages installed on your system, specify the -installed signal with the command.

The output generated by the command mentioned above contains additional information, including the version number and package state.

To get clean output suitable for use in scripting and output transfer, you can use string manipulation tools like sed or awk. For example, to print only package names:

sudo apt list –installed | awk ‘{split($0, a, “/”); print a} ‘

You can also count the total number of packages. All you have to do is pipe the output of the command mentioned with bathroom. Word count, abbreviated as wc, is a Linux utility that counts the number of characters, words, or lines present in a text file.

Using dpkg-query

Users running older versions of Ubuntu can use the dpkg-query command to get a list of installed packages.

Dpkg will present the output in a clean tabular format by default.

To remove additional information and print only the package names, run the following command:

Effortless package management with APT

In addition to List method, APT has several other functions that provide information associated with Linux packages. It also takes the headache out of removing unnecessary dependencies by keeping records of installed and uninstalled packages on your system.

Like APT, several other package managers are available for Linux, including DNF, pacman and YUM. Most Debian based distros come with APT, while Arch Linux and RHEL based systems use pacman and DNF as their default package managers respectively.

Final note

I hope you like the guide How you can List Installed Packages in Ubuntu With APT. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

We will be happy to hear your thoughts

      Leave a reply

      Compsmag
      Logo