yum install git 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 docentos
常常遇到沒法yum安裝的包,因此要增長額外的yum源.讓安裝更簡單ide
大名鼎鼎的epel和最近發現的一個centalt(比較拗口)this
方法以下(其實就是altcent的README.txt: http://mirror.neu.edu.cn/CentALT/readme.txt)url
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