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

by on August 25, 2006 · 15 comments· LAST UPDATED August 29, 2006

in , ,

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

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 15 comments… read them below or add one }

1 sikamani May 23, 2008 at 6:55 am

yes this web site very use full to get the result

Reply

2 uday September 11, 2008 at 2:18 am

Thanks for the detailed info.

I have a question:
How can we list if a software in not in rpm format? is there any command/procedure to find them? Please let me know.

Reply

3 Nagarjun March 2, 2009 at 8:22 am

can anyone compare installing a software in windows and in linux?

Reply

4 Nitin Kumar September 18, 2009 at 9:06 am

can some one help me… how to set up mail configuration on centos?

Reply

5 Molinero April 18, 2011 at 5:52 pm

Show all installed packages or software in Slackware

Manually:
# ls /var/log/packages

By slapt-get
# slapt-get –installed

Reply

6 Molinero December 5, 2011 at 8:07 pm

Show all installed packages or software in Red Hat/Fedora Core/CentOS Linux with YUM

# yum list installed

Reply

7 Eddie March 8, 2013 at 7:15 am

Can you tell me how to save the output of this command into a separate file?

Reply

8 John April 25, 2013 at 1:05 pm

redirect the std out into a file with a command like this:

rpm -qa | less > output.txt

Reply

9 Deepak May 8, 2013 at 6:41 am

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.

Reply

10 Raafi June 10, 2013 at 12:19 am

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)

Reply

11 Pinoy October 20, 2013 at 9:40 am

Thanks for the tutorial! :)

Reply

12 Geoff January 6, 2014 at 10:38 pm

Even more useful

$ yum list installed | sort | less
or
$ rpm -qa | sort > installed_software.txt

Reply

13 Suresh April 11, 2014 at 6:57 am

Good one… comprehensive

Reply

14 pravin jagtap July 31, 2014 at 5:08 pm

/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

Reply

15 waldir August 17, 2014 at 10:11 am

Does dpkg really list all *installed* packages? It seems to me like it should output only manually *selected/deselected* packages. That is quite a big difference.

Reply

Leave a Comment

Tagged as:

Previous Faq:

Next Faq: