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

Re: Specifying How Yum Downloads Updates



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/15/2009 09:09 AM, Bob Gustafson wrote:
> On Wed, 2009-04-15 at 09:38 -0500, Chris Adams wrote:
>> Once upon a time, Bob Gustafson <bobgus rcn com> said:
>>> Yes, I'm concerned about the ADDITIONAL packages removed by yum  
>>> because it does not maintain a reference count.
>>>
>>> It happened to me - 152 packages were removed. Many were critical to  
>>> the operation of my system.
>>> A reference counting package manager would not have done that.
>> What is this "reference counting" you keep mentioning?  How would it
>> have helped?
>>
>> You asked yum to do something, it displayed a list of all the actions it
>> was going to take as a result, and you said yes.  What else could it
>> have done?
>>
>> When you tell yum to remove a package that other packages depend on, it
>> can either remove all the dependencies, or not remove anything.
>> Anything else leaves broken packages in the system.  How would some
>> "reference counting" change that?
> 
> Suppose you have a package PkgA which requires libAB, libBB, libC
> 
> On installation of PkgA, it finds that libAB and libBB are already
> installed, having been installed with a previous package PkgB. It does
> install libC.
> 
> If you now remove PkgA, it finds that it depends on libAB, libBB, libC,
> which it displays in a list for the user to decide whether it is ok to
> also delete.
> 
> If the user says Yes, all of the packages PkgA, libAB, libBB, libC are
> deleted, leaving the previously installed package PkgB with missing
> libAB, libBB dependencies.
> 
> A reference counting scheme would detect that libAB and libBB are also
> used by another package and would not delete those two packages. Or
> offer to delete them.
> 

I don't think yum works this way, if you say "remove PkgA" it will only
remove PkgA and the things that depend on PkgA. It will not remove the
libAB,libBB or libC.

That said if you have the remove leaves plugin installed it might try to
remove those as well. However, I have seen that remove leaves does seem
to cause more problems than it fixes. So maybe the plugin needs to be
worked on rather than yum itself.

Kevin

- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAknl/B8ACgkQ6w2kMH0L1dFBYQCdF+yxNX9HTLznbK2IXcYTgnxh
/YsAnA1h3K1i1Rw5/Ft+vXbI9Jg4tWXo
=TWXO
-----END PGP SIGNATURE-----


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