"Ultimate Guide: List All Packages in Linux"

Noah Jul 31, 2026

Linux, an open-source operating system renowned for its stability, security, and flexibility, offers a vast array of packages that cater to various user needs. Whether you're a seasoned developer, a casual user, or a sysadmin, understanding how to list all packages in Linux is a handy skill to possess. Let's delve into the world of Linux packages and explore different methods to list them.

How to List Installed Packages on Linux
How to List Installed Packages on Linux

Before we proceed, it's essential to understand that the packaging system and commands vary slightly depending on the Linux distribution you're using. Here, we'll focus on two popular distributions: Ubuntu/Debian and Fedora/CentOS. The methods described can be adapted for other distributions as well.

30 LINUX COMMANDS EVERY DEVELOPER SHOULD KNOW
30 LINUX COMMANDS EVERY DEVELOPER SHOULD KNOW

Listing Packages in Ubuntu/Debian

Ubuntu and Debian use the Debian package format (.deb). The package management system is handled by APT (Advanced Package Tool).

How To List Installed Packages in Linux Using Package Management
How To List Installed Packages in Linux Using Package Management

Here are two common methods to list all packages in Ubuntu/Debian:

Using apt list

Linux distributions
Linux distributions

The `apt list` command provides a list of all installed and available packages. To list all installed packages, use the following command:

`sudo apt list --installed`

To list all available packages, use:

`sudo apt list`

Using dpkg

the best linux distributions info sheet for windows, mac and pc users in one place
the best linux distributions info sheet for windows, mac and pc users in one place

Another way to list packages is by using the `dpkg` command. To list all installed packages, use:

`dpkg --get-selections`

To list available packages, you might need to update the package list first with `sudo apt update` and then use:

`dpkg --list`

Listing Packages in Fedora/CentOS

The Best Linux Operating Distros
The Best Linux Operating Distros

Fedora and CentOS use the RPM Package Manager (RPM). The package management system is handled by `dnf` (Fedora) or `yum` (CentOS).

Let's explore the methods to list packages in these distributions:

Todas las distribuciones de Linux
Todas las distribuciones de Linux
the linux commands list for linux
the linux commands list for linux
Linux System Updates & Patching Guide for Sysadmins
Linux System Updates & Patching Guide for Sysadmins
the linux command commands and their features are displayed in this screenshote screen shot
the linux command commands and their features are displayed in this screenshote screen shot
the ubuntu chat sheet is shown in orange and black, with text
the ubuntu chat sheet is shown in orange and black, with text
the linux commands for devops poster
the linux commands for devops poster
the linux file management diagram is shown
the linux file management diagram is shown
How to list VM images in LXD (Linux Containers) - nixCraft
How to list VM images in LXD (Linux Containers) - nixCraft
a black and white poster with the names of different types of words on it's side
a black and white poster with the names of different types of words on it's side

Using dnf list (Fedora)

In Fedora, the `dnf list` command can be used to list all packages. To list all installed packages, use:

`sudo dnf list installed`

To list all available packages, use:

`dnf list`

Using yum list (CentOS)

In CentOS, you can use the `yum list` command to achieve the same results. Use `sudo yum list installed` to list all installed packages and `yum list` to list all available packages.

listing packages in Linux isn't just an academic exercise; it's a practical skill that helps you understand your system's contents better, track changes, and manage dependencies effectively. The more you explore and experiment with these commands, the more proficient you'll become in navigating the Linux ecosystem.