On Mar 8, 2006, at 10:15 PM, Matthew Miller wrote:
out of curiosity why do you want a list of duplicates? I've found Itypically want a list old pkgs - though adding 'list duplicates' would be extremely trivial for repomanage and if you'd like to do that, do soand send me a patch. I'll merge it.Um, now that I think about it, a list of duplicates and a list of oldpackages are probably actually exactly synonymous, 'cause I actually mean"old packages which duplicate current packages". :)
Add this to /etc/popt:rpm alias --dupes --qf '%|SOURCERPM?{%{name}.%{arch}}:{%|ARCH?{% {name}}:{%{name}-%{version}}|}|\n' --pipe "sort | uniq -d" \
--POPTdesc=$"list duplicated packages"
Invoke as
rpm -qa --dupes
or
rpm -qp --dupes *.rpm
And it appears that the flag I want is simply rpm._RPMVSF_NOPAYLOAD. (And itcan be set only the once.)
Add --stats to see what time various operations take. If NOPAYLOAD is affecting,
then you have *lots* of packages with old header+payload signatures. hth 73 de Jeff