Centos 6.5编译安装新版git 2.9.3

1、下载新版的git2.9.3

地址:https://github.com/git/git/releases,选择 git-2.9.3.tar.gz,下载Downloads即可

  1. [root@skd Downloads]# wget https://github.com/git/git/releases/tag/v2.9.3

2、安装依赖包

  1. yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

3、解压,编译安装(root用户下)

  1. [root@skd Downloads]# tag zxf git-2.9.3.tar.gz
  2. [root@skd Downloads]# cd git-2.9.3
  3. [root@skd git-2.3.5]# ./configure
  4. [root@skd git-2.3.5]# make
  5. [root@skd git-2.3.5]# make install
  6. [root@skd git-2.3.5]# git --version
  7. git version 2.9.3

发布日期:

所属分类: Linux/Centos/Os 标签: