Adaugare repozitory CentOS 6

Configurare noua (How To)

Situatie

Adaugare de repozitoare externe pentru a instala software-uri folositoare:

Solutie

Pasi de urmat

Se instaleaza un plug-in pentru a adauga prioritate pentru fiecare repozitor instalat.

yum -y install yum-plugin-priorities

Setam prioritatea 1 pentru cel oficial :

sed -i -e “s/\]$/\]\npriority=1/g” /etc/yum.repos.d/CentOS-Base.repo

Adaugare EPEL repo:

yum -y install epel-release

Setare prioritate 5 :

sed -i -e “s/\]$/\]\npriority=5/g” /etc/yum.repos.d/epel.repo

Se poate seta sa fie folosit doar la cerere :

sed -i -e “s/enabled=1/enabled=0/g” /etc/yum.repos.d/epel.repo

daca e disabled se poate cere manual ca packetul sa se instaleze din el prin :

yum –enablerepo=epel install [pachet]

 

CentOS SCLo:

yum -y install centos-release-scl-rh centos-release-scl

Prioritate 10

sed -i -e “s/\]$/\]\npriority=10/g” /etc/yum.repos.d/CentOS-SCLo-scl.repo

sed -i -e “s/\]$/\]\npriority=10/g” /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

Disabled

sed -i -e “s/enabled=1/enabled=0/g” /etc/yum.repos.d/CentOS-SCLo-scl.repo

sed -i -e “s/enabled=1/enabled=0/g” /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

Install manual in caz de disabled:

yum –enablerepo=centos-sclo-rh install [Package]

yum –enablerepo=centos-sclo-sclo install [Package]

Remi RPM repo:

yum -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Prioritate 10

sed -i -e “s/\]$/\]\npriority=10/g” /etc/yum.repos.d/remi-safe.repo

Disabled

sed -i -e “s/enabled=1/enabled=0/g” /etc/yum.repos.d/remi-safe.repo

Install manual in caz de disabled:

yum –enablerepo=remi-safe install [Package]

Tip solutie

Permanent
Etichetare:

Voteaza

(7 din 22 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?