Hi, I'm looking for some documentation (or advice) on how to best manage a -mostly- upstream binary compatible CentOS installation. I enabled the rpmforge repository in order to install a few packages not available in base/updates/centosplus. But, now when I do a "yum check-update" yum wants to update a whole stack of packages because it's found newer versions at rpmforge. Is there a way to tell yum to only pull updates from rpmforge for packages that were initially installed from rpmforge? I've been using the includepkgs directive with some success; although installing a package that has a dozen or so dependancies (from rpmforge) quickly makes this method seem not so elegant. Is there a better way? I'm going around in circles a bit with the official yum documentation. Obviously what I'm aiming for is to be as close to 100% binary compatible with the upstream provider as possible, and to also easily pull the latest updates for all my packages. Thanks in advance, I hope you're all having a good week. Regards, LC.
Lucas Chan wrote:> Is there a way to tell yum to only pull updates from rpmforge for > packages that were initially installed from rpmforge?Disable the rpmforge repos by default, then only enable it if you want to update packages you have installed from there. You can then enable it with the command line option to yum. Not sure there is another way, but I would like to hear it too if it is :) -- //Morten Torstensen //Email: morten at mortent.org //IM: Cartoon at jabber.no morten.torstensen at gmail.com And if it turns out that there is a God, I don't believe that he is evil. The worst that can be said is that he's an underachiever.
Lucas Chan
2006-Aug-16 07:16 UTC
[CentOS] Managing updates to non-centos packages :: SOLVED
> Is there a way to tell yum to only pull updates from rpmforge for > packages that were initially installed from rpmforge?I accidentally stumbled across a good solution after following a link to the CentOS SVN Wiki page (which someone kindly posted to this list earlier). http://wiki.centos.org/PackageManagement/Yum/ProtectBase "The purpose of the protectbase plugin is to protect certian repositories from updates from other repositories. Repositories that are to be protected will not be updated by newer files from non protected repositories. This plugin is recommended for anyone who routinely enables 3rd party repositories, as these non-CentOS repositories may update certian system files, potentially causing your CentOS installation to become unstable." Wicked! I thought I should post it here in case someone searches the list with the same problem. Thanks for your help, Morten. I hope this is useful for you? LC.