Настройка дополнительных репозиториев RHEL/CentOS —
Устанавливаем
yum install yum-priorities yum-fastestmirror
Подключаем дополнительные репозитории:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm
rpm -Uvh http://repo.redhat-club.org/redhat/5/i386/redhatclub-repository-release-5-4.el5.rhc.noarch.rpm
Выставляем приоритеты (python скрипт):
import ConfigParser
def writecfg( file, config ):
configfile = open( file, 'wb' )
config.write(configfile)
config = ConfigParser.RawConfigParser()
file='/etc/yum.repos.d/CentOS-Base.repo'
config.read(file)
config.set('base','priority',1)
config.set('updates','priority',1)
config.set('addons','priority',2)
config.set('extras','priority',2)
config.set('centosplus','priority',2)
writecfg( file, config )
config = ConfigParser.RawConfigParser()
file='/etc/yum.repos.d/epel.repo'
config.read(file)
config.set('epel','priority', 3)
writecfg( file, config )
config = ConfigParser.RawConfigParser()
file='/etc/yum.repos.d/rpmforge.repo'
config.read(file)
config.set('rpmforge','priority',4)
writecfg( file, config )
Вконце :
yum upgrade
Categorised as: Linux
Comments are disabled on this post