Ubuntu: List all Installed Packages using apt

If you want to know the list of all installed packages on your Ubuntu system you can make use of the below apt command.

apt list --installed

This will print out the list of all installed packages and their version details.

Listing... Done
adduser/jammy,now 3.118ubuntu5 all [installed]
apt/jammy-updates,now 2.4.9 arm64 [installed]
base-files/jammy-updates,now 12ubuntu4.3 arm64 [installed]
base-passwd/jammy,now 3.5.52build1 arm64 [installed]
bash/jammy,now 5.1-6ubuntu1 arm64 [installed]
bsdutils/jammy,now 1:2.37.2-4ubuntu3 arm64 [installed]
coreutils/jammy,now 8.32-4.1ubuntu1 arm64 [installed]
dash/jammy,now 0.5.11+git20210903+057cd650a4ed-3build1 arm64 [installed]
debconf/jammy,now 1.5.79ubuntu1 all [installed]
debianutils/jammy,now 5.5-1ubuntu2 arm64 [installed]
diffutils/jammy,now 1:3.8-0ubuntu2 arm64 [installed]
dpkg/jammy-updates,now 1.21.1ubuntu2.2 arm64 [installed]
e2fsprogs/jammy-updates,jammy-security,now 1.46.5-2ubuntu1.1 arm64 [installed]
findutils/jammy,now 4.8.0-1ubuntu3 arm64 [installed]
gcc-12-base/jammy-updates,jammy-security,now 12.1.0-2ubuntu1~22.04 arm64 [installed]
gpgv/jammy-updates,jammy-security,now 2.2.27-3ubuntu2.1 arm64 [installed]
grep/jammy,now 3.7-1build1 arm64 [installed]
gzip/jammy-updates,now 1.10-4ubuntu4.1 arm64 [installed]
hostname/jammy,now 3.23ubuntu2 arm64 [installed]
init-system-helpers/jammy,now 1.62 all [installed]
libacl1/jammy,now 2.3.1-1 arm64 [installed]
libapt-pkg6.0/jammy-updates,now 2.4.9 arm64 [installed]
libattr1/jammy,now 1:2.5.1-1build1 arm64 [installed]
libaudit-common/jammy,now 1:3.0.7-1build1 all [installed]
libaudit1/jammy,now 1:3.0.7-1build1 arm64 [installed]
libblkid1/jammy,now 2.37.2-4ubuntu3 arm64 [installed]
libtirpc-common/jammy-updates,jammy-security,now 1.3.2-2ubuntu0.1 all [installed]
libtirpc3/jammy-updates,jammy-security,now 1.3.2-2ubuntu0.1 arm64 [installed]
libudev1/jammy-updates,now 249.11-0ubuntu3.9 arm64 [installed]
libunistring2/jammy,now 1.0-1 arm64 [installed]
libuuid1/jammy,now 2.37.2-4ubuntu3 arm64 [installed]
libxxhash0/jammy,now 0.8.1-1 arm64 [installed]
libzstd1/jammy,now 1.4.8+dfsg-3build1 arm64 [installed]
login/jammy-updates,jammy-security,now 1:4.8.1-2ubuntu2.1 arm64 [installed]
logsave/jammy-updates,jammy-security,now 1.46.5-2ubuntu1.1 arm64 [installed]
lsb-base/jammy,now 11.1.0ubuntu4 all [installed]
mawk/jammy,now arm64 [installed]
mount/jammy,now 2.37.2-4ubuntu3 arm64 [installed]
ncurses-base/jammy-updates,jammy-security,now 6.3-2ubuntu0.1 all [installed]
ncurses-bin/jammy-updates,jammy-security,now 6.3-2ubuntu0.1 arm64 [installed]
passwd/jammy-updates,jammy-security,now 1:4.8.1-2ubuntu2.1 arm64 [installed]
perl-base/jammy-updates,jammy-security,now 5.34.0-3ubuntu1.2 arm64 [installed]
procps/jammy,now 2:3.3.17-6ubuntu2 arm64 [installed]
sed/jammy,now 4.8-1ubuntu2 arm64 [installed]
sensible-utils/jammy,now 0.0.17 all [installed]
sudo/jammy-updates,jammy-security,now 1.9.9-1ubuntu2.4 arm64 [installed]
sysvinit-utils/jammy,now 3.01-1ubuntu1 arm64 [installed]
tar/jammy-updates,jammy-security,now 1.34+dfsg-1ubuntu0. arm64 [installed]
ubuntu-keyring/jammy,now 2021.03.26 all [installed]
unzip/jammy-updates,jammy-security,now 6.0-26ubuntu3.1 arm64 [installed]
usrmerge/jammy,now 25ubuntu2 all [installed]
util-linux/jammy,now 2.37.2-4ubuntu3 arm64 [installed]
zlib1g/jammy-updates,jammy-security,now 1:1.2.11.dfsg-2ubuntu9.2 arm64 [installed]

You can make use of the grep command and filter out the details for a specific package.

# apt list --installed | grep unzip

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

unzip/jammy-updates,jammy-security,now 6.0-26ubuntu3.1 arm64 [installed]
Ubuntu- List all Installed Packages using apt Command Output

From the documentation:
           list is somewhat similar to dpkg-query --list in that it can display a list of
           packages satisfying certain criteria. It supports glob(7) patterns for matching
           package names as well as options to list installed (--installed), upgradeable
           (--upgradeable) or all available (--all-versions) versions.

Reference: https://manpages.ubuntu.com/manpages/lunar/en/man8/apt.8.html

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright ยฉ Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap