make git

Dejanu Alex
Jan 14, 2021

--

Usual Monday, different linux machine ...'git' is not recognized as an internal or external command, operable program or batch file.

Hmmm … locate/find git maybe…

man locate

locate uses a prebuilt database (which should be regularly updated) meanwhile find iterates over a filesystem to locate files.

Nope… ok…checkout latest and:

# download, scp or not and extract 
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
tar xf git-2.18.0.tar.gz
cd git-2.18.0/
# install dependencies
yum groupinstall 'Development Tools'
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel
# configure
make configure
./configure --prefix=/usr/local
# compile
make all
# install
make install
boom

--

--

Dejanu Alex
Dejanu Alex

Written by Dejanu Alex

Seasoned DevOps engineer — Jack of all trades master of None

No responses yet