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:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop










{ 8 comments… read them below or add one }
yes this web site very use full to get the result
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.
can anyone compare installing a software in windows and in linux?
can some one help me… how to set up mail configuration on centos?
Show all installed packages or software in Slackware
Manually:
# ls /var/log/packages
By slapt-get
# slapt-get –installed
Show all installed packages or software in Red Hat/Fedora Core/CentOS Linux with YUM
# yum list installed
Can you tell me how to save the output of this command into a separate file?
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.