List installed packages on a Linux system
Linux distribution | Full command | Short command | Alternative |
---|---|---|---|
Alma Linux | dnf list installed | ||
Debian | dpkg –list | dpkg -l | |
openSUSE | zypper search –installed-only | zypper search -i | |
Ubuntu | dpkg –list | dpkg -l |
Alma Linux, Fedora, RHEL, RockyLinux
Systems that are based on RHEL or are similar, have the option to use dnf command, which will show installed packages.
dnf list installed
Debian and Ubuntu
Systems that run or based on Debian or Ubuntu can use the dpkg command to list the installed packages.
dpkg --list
OpenSUSE and SUSE
For OpenSUSE and SUSE systems, the zypper command can show the installed packages. Use the search subcommand with the --installed-only option.
zypper search --installed-only