How To List All Installed Packages In Linux

Image of a terminal prompt

Quick howto: List all installed packages in Linux

In today’s quick ‘just the examples’ howto, we show you how to find out what packages are installed on your Linux system with one simple command. Depending upon what distribution of Linux you have, you will use a specific packaging type and/or tool. Here’s a list of the tools you can use and which distribution(s) they are available in:
  • RPM Logo, RPM Packages
    RPM Packages are provided on Red Hat based systems, including OpenSuSE

    Red Hat Linux, CentOS and Fedora: yum, RPM.

  • Fedora: dnf, RPM.
  • SuSE: Although SuSE does use RPM, it also uses its own package tool called zypper
  • Arch: pacman
  • Debian / Ubuntu and derivatives: dpkg, APT

Here are the examples you need:

RPM: $ rpm -qa --last
RedHat / CentOS: $ dnf list installed
OpenSuSE: $ zypper se --installed-only
Arch: $ pacman -Q
Debian / Ubuntu via DPKG: $ dpkg -l
Debian / Ubuntu via APT: $ apt list --installed

 

Don’t forget, you can redirect the output of any of these commands to a text file, for later perusal. To do that, simply type the command, followed by > filename.txt, eg: apt list –installed > packagelist.txt
Thanks goes to 2daygeek for inspiring this post. Check out a much more in depth article over at 2daygeek to see the ins and outs of this subject.

Related Post

RELATED:   Good, Free OpenSource Web Conferencing using BigBlueButton on Ubuntu

Leave a Reply