How can git be installed on CENTOS 5.5?

前端 未结 14 1973
刺人心
刺人心 2020-12-02 06:18

How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg.

root@host [~]# sudo yum install git
Loaded plugins: fastes         


        
14条回答
  •  甜味超标
    2020-12-02 06:36

    yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel
    
    Get the required version of GIT from https://www.kernel.org/pub/software/scm/git/ 
    
    wget https://www.kernel.org/pub/software/scm/git/{version.gz}
    
    tar -xzvf git-version.gz
    
    cd git-version
    
    ./configure
    
    make
    
    make install
    

提交回复
热议问题