天天看点

Centos中git的安装



centos的yum源中没有git,只能自己编译安装,现在记录下编译安装的内容,留给自己备忘。

确保已安装了依赖的包

yum install curl

Centos中git的安装

yum install curl-devel

Centos中git的安装

yum install zlib-devel

Centos中git的安装

yum install openssl-devel

Centos中git的安装

yum install perl

Centos中git的安装
Centos中git的安装

yum install expat-devel

Centos中git的安装

yum install gettext-devel

Centos中git的安装

安装git

yuminstall git

Centos中git的安装

检查下安装的版本,大功告成

git

--version

Centos中git的安装

创建一个git仓库,进行测试

Centos中git的安装

继续阅读