centos 6.5升级git

原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: centos 6.5升级git

CentOS 6.5自带的git版本是git 1.7.1,下面我来进行一次升级,升级到git 2.9.0,亲测可用,贴出本人的history。

[root@localhost git-2.9.0]# history 20
  506  git --version
  507  yum remove git
  508  yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
  509  yum -y install  gcc perl-ExtUtils-MakeMaker
  510  yum remove git
  511  cd /usr/src/
  512  wget https://www.kernel.org/pub/software/scm/git/git-2.9.0.tar.gz
  513  tar xzf git-2.9.0.tar.gz 
  514  ls
  515  cd git-2.9.0
  516  make prefix=/usr/local/git all
  517  make prefix=/usr/local/git install
  518  echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
  519  vim /etc/bashrc 
  520  source /etc/bashrc 
  521  git --version
  522  history 20
[root@localhost git-2.9.0]#

QQ截图20160721140354

原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: centos 6.5升级git

文章的脚注信息由WordPress的wp-posturl插件自动生成



|2|left
打赏

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: