This is a small how to on listing installed software in Redhat/Centos/Fedora Linux OS. We already written a post on how to get installed package details for Ubuntu machines. Some times we require to list software which are already installed so that we will not redo the same work by installing it once again.
Example 1: To list installed software execute below command
rpm -qa
or
yum list installed
Output(clipped):
xz.i686 4.999.9-0.3.beta.20091007git.el6 @anaconda-centos-201106051823.i386/6.0
xz-libs.i686 4.999.9-0.3.beta.20091007git.el6 @anaconda-centos-201106051823.i386/6.0
xz-lzma-compat.i686 4.999.9-0.3.beta.20091007git.el6 @anaconda-centos-201106051823.i386/6.0
yelp.i686 2.28.1-8.el6 @anaconda-centos-201106051823.i386/6.0
yp-tools.i686 2.9-10.el6 @anaconda-centos-201106051823.i386/6.0
ypbind.i686 3:1.20.4-29.el6 @anaconda-centos-201106051823.i386/6.0
yum.noarch 3.2.27-14.el6.centos @anaconda-centos-201106051823.i386/6.0
yum-metadata-parser.i686 1.1.2-14.1.el6 @anaconda-centos-201106051823.i386/6.0
yum-plugin-fastestmirror.noarch 1.1.26-11.el6 @anaconda-centos-201106051823.i386/6.0
yum-utils.noarch 1.1.26-11.el6 @anaconda-centos-201106051823.i386/6.0
zd1211-firmware.noarch 1.4-4.el6 @anaconda-centos-201106051823.i386/6.0
zenity.i686 2.28.0-1.el6 @anaconda-centos-201106051823.i386/6.0
zip.i686 3.0-1.el6 @anaconda-centos-201106051823.i386/6.0
zlib.i686 1.2.3-25.el6 @anaconda-centos-201106051823.i386/6.0
Example2: To count all installed softwares use below command which is modified version of above one.
rpm -qa | wc -l
Output:
[root@centos1 ~]# rpm -qa | wc -l
1056 [root@centos1 ~]# Example 3: To know the version and other details about installed package use below command
yum info <package-name>
Example:
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
Installed Packages
Name : zip
Arch : i686
Version : 3.0
Release : 1.el6
Size : 782 k
Repo : installed
From repo : anaconda-centos-201106051823.i386
Summary : A file compression and packaging utility compatible with PKZIP
URL : http://www.info-zip.org/Zip.html
License : BSD
Description: The zip program is a compression and file packaging utility. Zip is
: analogous to a combination of the UNIX tar and compress commands and
: is compatible with PKZIP (a compression and file packaging utility for
: MS-DOS systems).
:
: Install the zip package if you need to compress files using the zip
: program.
Hope this helps some one who is in need to get details on the package installed in Redhat/Centos/Fedora machine.
Latest posts by Surendra Anne (see all)
- Docker: How to copy files to/from docker container - June 30, 2020
- Anisble: ERROR! unexpected parameter type in action:
Fix - June 29, 2020 - FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018