添加附加yum源,讓安裝更方便

yum install git 

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Setting up Install Process
No package git available.
Nothing to do

經常遇到無法yum安裝的包,所以要增加額外的yum源.讓安裝更簡單

大名鼎鼎的epel和最近發現的一個centalt(比較拗口)

方法如下(其實就是altcent的README.txt: http://mirror.neu.edu.cn/CentALT/readme.txt)


For use this repo create file centos.alt.ru.repo in /etc/yum.repo.d

for CentOS/RHEL 5

[CentALT]
name=CentALT Packages for Enterprise Linux 5 - $basearch
baseurl=http://centos.alt.ru/repository/centos/5/$basearch/
enabled=1
gpgcheck=0


and enable EPEL repository

for i386 
rpm -ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

for x86_64
rpm -ihv http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm


for CentOS/RHEL 6

[CentALT]
name=CentALT Packages for Enterprise Linux 6 - $basearch
baseurl=http://centos.alt.ru/repository/centos/6/$basearch/
enabled=1
gpgcheck=0


and enable EPEL repository

for i386 
rpm -ihv http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

for x86_64
rpm -ihv http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章