Re: yum leaving multiple versions installed

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

 



Mary Ellen Foster wrote:
On 05/02/06, Steve Grubb <sgrubb@xxxxxxxxxx> 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.

--
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]