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

Re: How to find yum (rpm) duplicate packages?



Paul W. Frields wrote:
On Thu, Mar 26, 2009 at 01:22:07PM -0700, Daniel B. Thurman wrote:
Paul W. Frields wrote:
On Thu, Mar 26, 2009 at 11:04:41AM -0700, Daniel B. Thurman wrote:
I am unable to find yum/rpm instructions on how to
find/locate duplicate packages that might be on my
system.

Does anyone know how this is done?
Install the 'yum-utils' package. It includes the 'package-cleanup'
utility that does what you want.

Thanks for the tip!

Howevcr, I ran into this problem:
==================================================
# package-cleanup --cleandupes
Setting up yum
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
I will remove the following old duplicate packages:
2:lam-libs-7.1.2-11.fc9.i386
postgresql-pgpoolAdmin-1.0.0-7.fc8.noarch
Is this ok [y/N]: y
/usr/lib/lam/lam.ld.conf has not been configured as an alternative for mpilibs32
error: %preun(lam-libs-7.1.2-11.fc9.i386) scriptlet failed, exit status 2
=====================================================

So, how can I remove lam-libs?

This was a bug in that release of the lam-libs package, which was
fixed in the newest lam-libs.  I would do this (as root):

rpm -q --scripts lam-libs-7.1.2-11.fc9 > /tmp/lam-libs-scripts
rpm -e --noscripts lam-libs-7.1.2-11.fc9

Then look at the /tmp/lam-libs-scripts, in particular %preun and
%postun, and see if there's anything you need to handle manually.
Interesting...  this is what I have done:

# rpm -q --scripts lam-libs-7.1.2-11.fc9 > /tmp/lam-libs-scripts
# rpm -e --noscripts lam-libs-7.1.2-11.fc9
# more /tmp/lam-libs-scripts
postinstall scriptlet (using /bin/sh):
alternatives --install /etc/ld.so.conf.d/mpi32.conf \
           mpilibs32 /usr/lib/lam/lam.ld.conf 5
/sbin/ldconfig
preuninstall scriptlet (using /bin/sh):
alternatives --remove mpilibs32 /usr/lib/lam/lam.ld.conf
postuninstall program: /sbin/ldconfig

I have no idea what the tmp file is telling me!  Do you
notice anything of significance?

Thanks!
Dan


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