1826341 Members
4102 Online
109692 Solutions
New Discussion

Re: package version

 
Jagadesh
Frequent Advisor

package version

When i use
$rpm -qa
This lists all the installed rpm.

How can i find the maximum details of a particular rpm?
How can i find the version of a particular rpm (say gcc)?

Thanks
Jagadesh
5 REPLIES 5
Huc_1
Honored Contributor

Re: package version

Hi,

As root I use

#rpm -qla gcc | less

not realy releated to rpm but I find it usefull to find information on a particular ressource

#locate gcc | less

I find this command also usefull, It requires update to have run

#man -k cc | less

Hope this help otherwise ask for more

Jean-Pierre Huc

Smile I will feel the difference
Steven E. Protter
Exalted Contributor

Re: package version

For version number just rpm -q

rpm -q gcc

yields


gcc-2.96-113


My version originated from Red Hat 7.3 and is nearly fully updated.

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
Alexander Chuzhoy
Honored Contributor

Re: package version

rpm -qa |grep gcc
rpm -qip packagename
Stuart Browne
Honored Contributor

Re: package version

rpm -qi

the 'p' will look for a local file, not in the installed packages.
One long-haired git at your service...
Claudio Cilloni
Honored Contributor

Re: package version

$ rpm -q -l

will show the list of the installed files that belong to that package.

Ciao
Claudio