Show all installed packages or software in Linux, FreeBSD, OpenBSD

Posted on in Categories , , last updated August 29, 2006

Q. I am using CentOS how do I show all installed packages in Linux?

A. You need to use rpm command to display all installed packages in Linux.

Red Hat/Fedora Core/CentOS Linux

Type the following command to get list of all installed software
# rpm -qa | less

Debian Linux

Type the following command to get list of all installed software:
# dpkg --get-selections

Ubuntu Linux

Type the following command to get list of all installed software:
# sudo dpkg --get-selections

FreeBSD

Type the following command to get list of all installed software:
# pkg_info | less
# pkg_info apache

Use pkg_version command to summarizes the versions of all installed packages:
# pkg_version | less
# pkg_version | grep 'lsof'

OpenBSD

OpenBSD also use pkg_info command to display list of all installed packages or software:
# pkg_info | less
# pkg_info apache

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

17 comment

    1. If it is not in rpm or apt format and its on your own distribution and not using any package manager then you need to go to /bin/* , /sbin/* etc directory and individually check it for eg:
      /bin/ls –version

    1. depends upon the version/distro of Linux being used – recent distros like Ubuntu have made it basically painless as simple as point and click and is just as brainless as installing anything in Windows

  1. If you want to save the output of some command, you can use redirect operation.
    For eg:
    To save the output of the command “yum list installed”, execute
    # yum list installed > installed_packages.txt
    where “installed_packages.txt” is the file where the output of the executed command
    is saved.

    This will be more helpful especially when the output of the command exceeds the
    screen space.

  2. Any way of getting a list of the various commands to open up programs in the terminal? for example “Firefox” opens up a Firefox browser. I would like to be able to find a list of commands to open up all of the programs I have because when I look thru the list of “Show Applications” everything is not there. (I am working with Fedora 18)

  3. /usr/bin/ld: cannot find -ll
    collect2: error: ld returned 1 exit status
    i have installed flex for fedora19 throug yumm install flex commmand but if i am compiling lex programe then this error ca occur pls help me what to do

Leave a Comment