Installing a repo on a RHEL8 Linux host
2 min readSep 6, 2024
--
Installing git with a tar ball downloaded from git website
# all commands running as root
git --version
yum install autoconf libcurl-devel expat-devel gcc gettext-devel kernel-headers openssl-devel perl-devel zlib-devel -y
git --version
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
tar -xvzf git-2.9.5.tar.gz -C /root
sudo mkdir /opt/git
cd /root/git-2.9.5
./configure --prefix=/opt/git
# yum install make
make
make install
cd /opt/git && ls -lrt && cd /bin
./git --version
which git
# yum remove git
# clear
git --version
# ./git --version
# creating softlink
echo $PATH
ln -s /opt/git/bin/git /usr/bin/git
cd /bin && ls git*
git --version
# End
visit the site www.git-scm.com and click on “Download” and then “Linux/Unix” and then download the tarball
the list has this latest tarball as of today — git-2.9.5.tar.gz
get the clean link out of out and using wget command get the tarball downloaded on the system —
Reference — https://www.youtube.com/watch?v=4vKS9H1gIdA