[Yum] dulicates

Matthew Miller mattdm at mattdm.org
Fri May 27 15:01:43 UTC 2005


On Thu, May 26, 2005 at 10:25:47AM -0700, Garrick Staples wrote:
> 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

Or use "uniq -d". :) But either way, save a second or so and add  --nodigest
--nosignature:

$ time rpm -qa > /dev/null
real    0m1.664s
user    0m1.517s
sys     0m0.079s

$ time rpm --nodigest --nosignature -qa > /dev/null
real    0m0.331s
user    0m0.197s
sys     0m0.066s


-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>
Current office temperature: 75 degrees Fahrenheit.



More information about the Yum mailing list