Centos 6.5 用yum安装git

Centos 6.5 用yum安装git

1. wget -P /etc/yum.repos.d/ http://geekery.altervista.org/geekery-el6-x86_64.repo

不同系统版本参考:http://geekery.altervista.org/dokuwiki/doku.php?id=start


2. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
3. rpm -ivh http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm

版本不同请参考:http://mirrors.yun-idc.com/epel/6/

开始使用yum安装git

4. yum -y install git

查看安装成功是否

5. git --version
   显示:git version 1.7.10 就是成功了


你可能感兴趣的:(Centos 6.5 用yum安装git)