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.
------------------------------------------------------------------------
Dan Ramaley Dial Center 118, Drake University
Network Programmer/Analyst 2407 Carpenter Ave
+1 515 271-4540 Des Moines IA 50311 USA
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users