CentOS安装git

下载git源码

wget https://github.com/git/git/archive/master.zip

安装依赖

sudo yum install curl-devel expat-devel gettext-devel \
openssl-devel zlib-devel

解压并安装

unzip master.zip

进入解压后的目录

$ make configure
$ ./configure –prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info

ok!

评论

  • 还没有任何评论,来说两句吧。

  • 0%