RPM database question

Systems Administrator sysadmin at drc.co.ke
Thu Jan 19 11:27:35 UTC 2006


Gawain Lynch said:
> On Thu, 2006-01-19 at 14:02 +0300, Systems Administrator wrote:
> 
>>> But what I was thinking of was more like this. If I remember
>>> correctly it listed all 'duplicate' entries.
>>> 
>>> rpm -qa | sort | uniq -c | grep -v???   and that is all that I can 
>>> remember
>> 
>> try rpm -qa | sort | uniq -c or rpm -qa | sort | uniq -D or rpm -qa | sort
>> | uniq -d
>> 
> I really should read the man page every now and again...  "uniq -d" is 
> much cleaner :-)

ye you should start reading..*smile*
> 
> rpm -q $(rpm -qa --queryformat %{NAME}'\n' | sort | uniq -d)
> 
> -- fedora-list mailing list fedora-list at redhat.com To unsubscribe:
> https://www.redhat.com/mailman/listinfo/fedora-list
> 


----------------------------------------------------------------------------
David Maina.
Systems/Network Administrator.
PdE-Kenya.
P. O. Box 1239 - 20100.
Nakuru, Kenya.
Telephone:+254-51-850298/850333.
Cell:+254-721-950073.
Registered Linux User #407239.
----------------------------------------------------------------------------
"By golly, I'm beginning to think Linux really *is* the best thing since sliced bread."




More information about the fedora-list mailing list