yum leaving multiple versions installed
Jim Cornette
fct-cornette at insight.rr.com
Sun Feb 5 19:00:21 UTC 2006
Mary Ellen Foster wrote:
> On 05/02/06, Steve Grubb <sgrubb at redhat.com> wrote:
>> # Add any package here that is OK to have duplicates
>> dups="gpg-pubkey|kernel|kernel-devel"
> Also "kernel-smp|kernel-smp-devel" ...
>
> MEF
>
> --
> __ Mary Ellen Foster __ http://homepages.inf.ed.ac.uk/mef/ __
> "One of the main causes of the fall of the Roman Empire was that,
> lacking zero, they had no way to indicate successful termination
> of their C programs." (Robert Firth)
>
Playing around with the scripts from Steve and Ville let me customize it
to show the following. I did not see any output for development with the
addition of just kernel as below. Adding kernel-smp to the exclusions
would probably be needed if you would use the information.
#!/bin/sh
# This script will search for duplicate package installations and also
will exclude
#programs which are legitimate duplicate packages.
#
# Enter the rpms that are legitimate multiversion installs in the below
line.
# These entries will not show on the output from the script.
#
dups="gpg-pubkey|kernel"
echo Starting Duplicate RPM Search.
echo ...
rpm -aq --queryformat "%{NAME}-%{ARCH}\n" | sort | uniq -c | grep -v -E
" *1 "|awk '$1 > 1
{ print $2 } ' | egrep -v $dups
echo Finished With Search.
echo
Jim
--
The person who can smile when something goes wrong has thought of
someone to blame it on.
More information about the fedora-test-list
mailing list