list of duplicate packages installed?
Norman Gaywood
norm at turing.une.edu.au
Wed Mar 10 06:56:19 UTC 2004
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 at turing.une.edu.au 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
More information about the fedora-list
mailing list