INSTALL GIT IN CENTOS 7
Step 1: From your home directory in CentOS , type
cd /usr/src
Step 2: Copy these commands to download the git tar
sudo wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.29.0.tar.gz
sudo tar xzf git-2.29.0.tar.gz
Step 3:
Install the following dependencies :
sudo yum -y install gcc
sudo yum install --assumeyes openssl-devel
sudo yum install libcurl-devel
yum install expat-devel
Step 4:
cd git-2.29.0
sudo make prefix=/usr/local/git all
sudo make prefix=/usr/local/git install
Step 5:
Open your /etc/bashrc and add the following
export PATH=/usr/local/git/bin:$PATH
Then type
source /etc/bashrc
Step 6:
Check if git is installed by typing and checking
git version
horray check git version
Comments
Post a Comment