歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

CentOS6.7安裝git

CentOS6.7安裝git

CentOS6.7安裝git


1.在安裝Git之前,需要先安裝一些依賴包,安裝依賴包之前可以先檢查下是否已經安裝

# rpm -qa | grep zlib-devel

2.如果沒有安裝,我們先要安裝這些依賴包:

# yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
# yum install curl-devel
# yum install autoconf


3.下載git安裝包(http://pan.baidu.com/s/1hrKqxus),解壓安裝

# chmod a+x git-1.8.3.tar.gz
# tar xzvf git-1.8.3.tar.gz
# cd git-1.8.3
# autoconf
# ./configure --with-curl=/opt/git
# make
# make install


4.驗證

#git --version

git version 1.8.3

http://xxxxxx/Linuxjc/1184823.html TechArticle

Copyright © Linux教程網 All Rights Reserved