cancel
Showing results for 
Search instead for 
Did you mean: 

how to list rpm installed

 
Pando
Regular Advisor

how to list rpm installed

dear gurus,

I would like to ask how to list installed rpm's in linux and its version. Thanks!
7 REPLIES
Srimalik
Valued Contributor

Re: how to list rpm installed

rpm -qa

will list all the installed rpms

you can filter the output using grep

rpm -qa | grep -i
abandon all hope, ye who enter here..
Steven E. Protter
Exalted Contributor

Re: how to list rpm installed

Shalom,

rpm -qa does list all rpm's and versions. It doe not list all software as there are other means of installing on linux, including compile your own.

rpm has many useful functions. the man page comes highly recommended.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Srimalik
Valued Contributor

Re: how to list rpm installed

Hi Steven,

Is there a way by which we can find all the softwares installed, I don't know of any method to list the softwares which are installed by compilation ( configure , make , make install series).

I remember installing a lot of them ab keep on adding to the list almost daily but I dun have any record of what I have installed(In case I want to free up some disk space).

Sri
abandon all hope, ye who enter here..
TY 007
Honored Contributor

Re: how to list rpm installed

Hello Pando,

# man rpm
--last Orders the package listing by install time such
that the latest packages are at the top

Example:

# rpm -qa --last
openoffice.org-kde-1.1.2-28.6.0.EL4 Sun 18 Dec 2005 02:52:42 PM
openoffice.org-1.1.2-28.6.0.EL4 Sun 18 Dec 2005 02:52:33 PM
openoffice.org-libs-1.1.2-28.6.0.EL4 Sun 18 Dec 2005 02:52:19 PM

You could use above command to check when the Software was installed.

Thanks
Manajit
Occasional Visitor

Re: how to list rpm installed

Hi Pando

rpm -qa
lists all installed packages with version.

rpm -qa -i
lists all information about installed rpm packages.

-i, --info
Display package information, including name, version, and description.

Karsten Breivik_1
Frequent Advisor

Re: how to list rpm installed

Another useful command I use sometimes is

rpm -qa | grep openoffice | xargs rpm -ev

which essentially uninstalls all openoffice packages.

xargs is really great for several uses as it parses the list and sends it as arguments to another command. I also used it to empty a directory which contained 250 000 files. This made the rm command crash. Using something like

ls | xargs rm -f

or delete all files called

find /tmp -name core -type f -print | xargs /bin/rm -f


emptied the directory.

But guys - back to the listing question from Pando. Is there a way to list all packages using yum?


poi
Manuel Contreras
Regular Advisor

Re: how to list rpm installed

don't forget rpmquery :)

[me@myBOX ~]$ rpmquery xmms
xmms-1.2.10-14.el5.rf