CentOS6.5升级git
2014-11-12 19:55
267 查看
As of this writing, CentOS 6.5 has a default git version of 1.7.1-2. This version is what you will have installed if you run the typical install command:
# yum install git
However, GitHub and many other services require git version 1.7.10 or higher. It turns out there is a very easy way to get git. You need to do this from a privileged account, but then the process is simple.
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# rpm -i 'http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm'
# yum clean all
# vim (or whatever) rpmforge.repo
change the enabled=0 flag to enabled=1 in the section labelled [rpmforge-extras].
# yum update
# yum provides git
This will return a longer list of available git modules.
Install the newer git by copying the FULL REPO NAME. For example:
# yum install git-1.7.12.4-1.el6.rfx.x86_64
# git --version
You should have the new release installed.
Now go back and edit rpmforge.repo and disable the rpmforge-extras repository. Then ensure the yum directory is cleaned up.
# yum install git
However, GitHub and many other services require git version 1.7.10 or higher. It turns out there is a very easy way to get git. You need to do this from a privileged account, but then the process is simple.
Add RPM Forge to Yum Repos
# wget 'http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm'# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# rpm -i 'http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm'
# yum clean all
Install New Version from RPM Forge
# cd /etc/yum.repos.d# vim (or whatever) rpmforge.repo
change the enabled=0 flag to enabled=1 in the section labelled [rpmforge-extras].
# yum update
# yum provides git
This will return a longer list of available git modules.
Install the newer git by copying the FULL REPO NAME. For example:
# yum install git-1.7.12.4-1.el6.rfx.x86_64
# git --version
You should have the new release installed.
Now go back and edit rpmforge.repo and disable the rpmforge-extras repository. Then ensure the yum directory is cleaned up.
相关文章推荐
- Centos 6.5升级git版本的办法
- CentOS6.5升级git版本
- Centos 6.5升级Git到Git2.1.2的步骤
- Centos 6.5升级到Git2.1.2的步骤
- CentOS6.5升级git
- Centos 6.5 Git1.7.1升级到Git2.2.1
- CentOS6.5升级Git版本
- Centos 6.5 Git版本升级
- Centos6.5将git 1.7.1升级到git 2.2.1
- Centos 6.5升级到Git2.1.2
- centos 6.5 升级 git 1.9
- Centos6.5升级git
- centos6.5升级python带来的问题:yum异常:File "/usr/bin/yum", line 30..........
- centos 6.5 Git搭建
- centOS 6.5 升级python到2.7.6
- Centos6.5 搭建git服务器。
- centos6.5 升级python2.6.6到2.7.9安装过程出现问题解决过程
- centos6.5升级Python2.7.14
- Centos 6 升级 git
- 使用yum快速升级CentOS 6.5内核到 3.10.28