duplicate rpm

Craig White craigwhite at azapple.com
Thu Dec 11 04:37:09 UTC 2008


On Thu, 2008-12-11 at 15:25 +1100, L wrote:
> 
> 
> On Thu, Dec 11, 2008 at 3:18 PM, L <yuanlux at gmail.com> wrote:
>         Hi, 
>         my system is F9 X86_64, updated. I found there are duplicate
>         rpms in my system eg
>         
>         yum-3.2.19-3.fc9.noarch
>         yum-3.2.14-10.fc9.noarch
>         
>         openldap-2.4.10-2.fc9.x86_64
>         openldap-2.4.8-3.fc9.x86_64
>         
>         It seems ok to remove old version. I suspect there are more
>         duplicates. How to identify them?
>         
>         thanks
>          Y
> 
> I identified them using script:
> 
>   rpm -qa | awk -F\. '{print $1, $(NF) } '  x | sort | uniq -c | awk
> '$1 > 1'  > dup.rpm.list
> 
> There are 300+, how to efficiently remove older ones?
----
yum install yum-utils
package-cleanup --dupes
package-cleanup --cleandupes

Craig




More information about the fedora-list mailing list