redhat 7.6 install git

1. Download git package

Download URL: https://mirrors.edge.kernel.org/pub/software/scm/git/    // you want to download their own version

Or directly use wget to download directly on Linux

wget  https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.21.0.tar.gz

 

3.tar extract the git package

4. Install the specified directory / usr / local / git /

 

 5. compile and install, the installation fails compiled here, suggesting zlib.h error, you need to install zlib

 

 

 Install zlib

    yum install zlib-devel

 

6. Perform make; make install the installation

 

7. Review the installation complete version of normal

 

 

Guess you like

Origin www.cnblogs.com/MOMING95/p/11762096.html