Re: list of duplicate packages installed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 10, 2004 at 04:12:55PM +1100, Ben Stringer wrote:
> On Wed, 2004-03-10 at 15:19, Innes Cathcart wrote:
> > I'm trying to generate a list of duplicate packages that are installed on my 
> This should give you what you want:
> 
> rpm -q --qf "%{NAME}\n" -a | sort | uniq -d
> 
> You will then need to query the outputted packages individually to find
> their version info. On my system, only kernel and gpg-pubkey are
> duplicates.

Or feed your output back into rpm:

rpm -q `rpm -q --qf "%{NAME}\n" -a | sort | uniq -d`

or:

rpm -q --qf "%{NAME}\n" -a | sort | uniq -d | xargs rpm -q

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

norm@xxxxxxxxxxxxxxxxx            Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~norm    Fax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux