CentOS6.5x86_64用yum安装git

时间:2016-09-26 19:54:52 

1. 下载geekery repo文件(root权限)

cd /etc/yum.repos.d/

wget //geekery.altervista.org/geekery-el6-x86_64.repo

2. 到//packages.sw.be/rpmforge-release 下载合适到rpm包

rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

3. 到//rpm.pbone.net/ 搜索rpm epel-release

epel-release-6-8.1.noarch.rpm

4. 安装 rpm

rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

rpm -ivh epel-release-6-8.1.noarch.rpm

5. yum -y install git

大功告成

git --version

git version 1.7.1

看不过瘾?点击下面链接!
本站微信公众号:gsjx365,天天有好故事感动你!

相关电脑知识

美图欣赏

电脑知识排行榜