[Yum] dulicates

Garrick Staples garrick at usc.edu
Thu May 26 17:25:47 UTC 2005


On Thu, May 26, 2005 at 02:37:11PM -0230, Brent Payne alleged:
> Hi All;
> 
> Is there a way to search for and/or clean duplicate (version
> different) rpms installs?
> 
> Thanks for your time.

Simple and quick way to find them:
  rpm -qa --qf '%{NAME}\n' | sort > allrpms
  rpm -qa --qf '%{NAME}\n' | sort -u > allrpms-unique
  diff allrpms allrpms-unique

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20050526/85150711/attachment-0001.pgp 


More information about the Yum mailing list