On Wed, 30 Sep 2009, Daniel A. Ramaley wrote:
On 2009-09-30 at 11:38:27, Matthew Hyclak wrote:
Because of the way the yum-rhn-plugin works, priorities can't be used
with Red Hat systems. They do provide the yum-protectbase package
which isn't as flexible as priorities, but the Red Hat repos are
protected, so any repo that is not protected can't overwrite packages
from a protected repo. In your case this would probably work fine.
http://wiki.centos.org/PackageManagement/Yum/ProtectBase
Thanks. Here's what i ended up having to do, in total:
Install protectbase package:
# yum install yum-protectbase
Make sure repositories do not override Red Hat base:
# for FILE in /etc/yum.repos.d/*.repo ; do \
if ! grep ^protect $FILE > /dev/null 2>&1 ; then \
echo 'protect = 0' >> $FILE ; \
fi ; \
done
Edit /etc/yum/pluginconf.d/rhnplugin.conf and add a section like this:
[rhel-x86_64-server-5]
protect = 1
To determine the exact name of the section, run "yum repolist all" and
check the output for the name of the Red Hat repository.
I think we need this information in the RPMforge wiki. As soon as we have
set up the infrastructure to host a wiki, that is :-)
Thanks for contributing this here !
--
-- dag wieers, [email protected], http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users