Re: [CentOS] Yum upgrade to 4.4 problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Bowie Bailey wrote:
>>From your second link:
>     Yes, I did get lots of duplicate packages but I've already fixed
>     that.  Basically, what I did was to run Adam Stoke's script to
>     remove duplcate packages. It can be located at
>     http://astokes.org/?q=node/49
> 
> That website is no longer working.  Is there still a copy of this
> script floating around?
> 

I ran that script as well just a few minutes ago and it got rid of all
my dups. Everything seems to be good now, but I'll have to keep this all
in mind for the next time around.

The script is just this in case you still can't get to it:

for file in `rpm -qa --queryformat="%{NAME} %{ARCH}\n" | sort | uniq -c
| grep -v "  1 " | cut -c 9- | cut -d" " -f1`; do rpm -q --last $file |
tail -1 | cut -d" " -f1; done | grep -v gpg-pubkey | xargs rpm -e
--justdb --nodeps 2> /tmp/dupes


Max
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux