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

by Vivek Gite on August 25, 2006 · 6 comments

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

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 6 comments… read them below or add one }

1 sikamani May 23, 2008

yes this web site very use full to get the result

Reply

2 uday September 11, 2008

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

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

Reply

4 Nitin Kumar September 18, 2009

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

Reply

5 Molinero April 18, 2011

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

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

# yum list installed

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 5 + 4 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: