How to List Installed Packages in Ubuntu With APT – Guide

To get a list of the packages currently installed on your Ubuntu system, use the default package manager. ..

Ubuntu makes it easy for users to get a list of all packages currently installed on their system. This can be helpful when you want to remove unwanted software from your system. ..

To list all installed packages on Ubuntu, use the apt command: apt list This will show you a list of all the packages installed on your system. To see a list of all the available packages on Ubuntu, use the apt search command: apt search ..

Get a list of packages installed on Ubuntu

To list the packages currently installed on your system, use the List method of the APT command. To print only packages installed on your system, use the -installed signal.

The output from the command mentioned above includes additional information, including the version number and package state. ..

awk ‘{print $2}’ /etc/apt/sources.list ..

sudo apt list –installed | grep “^Package:” Package: * ..

You can 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

The dpkg-query command can be used to get a list of installed packages on Ubuntu.

Dpkg will present the output in a clean tabular format by default. To change this, you can use the –tab-layout option.

grep -E ‘^package-name$’ /etc/apt/sources.list This will remove all the packages from the sources.list file that are not package-name specific, leaving only the packages that are package-name specific.

Effortless package management with APT

In addition to the 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.

There are several package managers available for Linux, including DNF, pacman and YUM. 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

How to List Installed Packages in Ubuntu With APT In Ubuntu, there are a number of installed packages. To list them, use the aptitude command. The following example lists all the installed packages in the ubuntu system: $ aptitude list installed Packages: app-admin-1.0 app-admin-common app-auth-1.0 app-auth-common app-baseband 0.9.5 app-baseband-common app-busybox 1:2ubuntu2app libcups2 1:4ubuntu3 libdrm1 2.4.99+dfsg1 libdrm2 2.4.99+dfsg1 libgcc1 6:6ubuntu3 libgcc_s6 6:6ubuntu3 libstdc++6 6:6ubuntu3 openssl 1.0.2f 1:0ubuntu8 openldap 2.3 openldap_x509 3rdparty openssl_src 1:0ubuntu8 pkgname=pkgname -a pkgver=pkgver -r Architecture=amd64 Architecture=arm64 Architecture=i386 Architecture=ppc64le Architecture=powerpc Architecture=s390x PackageFilename=/usr/share/apt/archives/aptitude/files/filesystems/$pkgname/$architecture/$pkgver/usr/share/aptitude/* $ aptitude list installed Packages: apache2 apache2–cgi apache2–httpd apache2–php apache2–servlet apache2–xml php5 php5–cgi php5–httpd php5–php7 python python3 python3–stdlib sudo aptitude removeapacheapache2apachedeviceapachemod_fcgi sudo aptitude removeapacheapachemod_httpdapachedeviceapachemod_php sudo aptitude removeapacheapachemod_serv