Hi,

On Wed, Jun 30, 2010 at 02:47:41PM +1000, Steve Cliffe wrote:
> I just did my semi-regular monthly "yum update" (CentOS 5.5 box) and
> whilst checking things noticed that I have multiple versions of mythtv
> packages installed:
> 
> [r...@mythpvr steve]# yum list installed | grep libmyth
> libmyth-0.21_0.x86_64                       0.21-213.el5              
> installed
> libmyth-0.22_0.x86_64                       0.22-231.el5              
> installed
> libmyth-0.23_0.x86_64                       0.23-235.el5              
> installed
> [...]

> Any ideas why the old versions aren't being cleaned/deleted up during
> updates?

This is a general library compatibility feature and not something
mythtv specific.

A package foo with some libraries like libfoo.so.1 may be updated to
now carry libfoo.so.2, but there may be other packages using the
former soname. Until these get rebuilt (and they may be even in other
repositories), one would need multiple libraries installed.

The side effect is that these may pile up like in your case. There is
an easy way to identify all these packages:

rpm -q --whatprovides shared-library-package

And it's also quite easy to remove the unused ones:

for rpm in `rpm -q --whatprovides shared-library-package`; do
  rpm -e $rpm 2>/dev/null && echo $rpm was removed || echo $rpm is still needed
done

You don't really need the echos, these are just for having some output.
-- 
Axel.Thimm at ATrpms.net

Attachment: pgpdvVoXMhNc0.pgp
Description: PGP signature

_______________________________________________
atrpms-users mailing list
[email protected]
http://lists.atrpms.net/mailman/listinfo/atrpms-users

Reply via email to