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

by on August 25, 2006 · 8 comments· last updated at 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



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 8 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 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

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as:

Previous Faq:

Next Faq: