Redhat Linux 8 repository doesn't have newer version of GIT 2.46.x version as it is required to upgrade Bitbucket datacenter version 8.19.11 version so Can anyone suggest me the steps where I can download and install the GIT?
Any suggestions would be appreciated.
Thanks,
Om
I followed below steps to upgrade GIT
yum -y remove git
yum -y clean packages
mkdir tempgit
cd tempgit
yum install -y autoconf cpio curl-devel expat-devel gcc gettext-devel make openssl-devel perl-ExtUtils-MakeMaker zlib-devel
wget -O v2.24.1.tar.gz https://github.com/git/git/archive/v2.24.1.tar.gz
tar -xzvf ./v2.24.1.tar.gz
cd git-2.24.1/
make configure
./configure --prefix=/usr/local/git
make && make install
ln -sf /usr/local/git/bin/* /usr/bin/
cd ..
rm -fr git-2.24.1
cd ..
rm -fr tempgit
echo "results"
which git
git --version
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.