Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install git or update git without apt-get or yum

I have some linux boxes that do not allow me to use yum to install packages. Instead I need to download the zip or tar and then use a package manager to install the items on my linux boxes.

When you go to the git-scm page, the only way they provide to install git is to use yum, apt-get, etc from the command line.

Why is there not just a zip file? Where can I find the package to install? Has anyone else had this same issue?

like image 419
Chris Bolton Avatar asked Nov 10 '22 02:11

Chris Bolton


1 Answers

I had the same issue before. I tried to install git from source and it works.

Intalling these packages first:

curl
autoconf
zlib-devel
openssl-devel
perl
cpio
expat-devel
gettext-devel

Getting the GIT scm source code:

git-latest.tar.gz

Compiling the GIT scm from source

tar xzvf git-latest.tar.gz
cd git-{date} // edit it
autoconf
./configure --with-curl=/usr/local
make
make install
like image 109
Tuan Avatar answered Nov 15 '22 04:11

Tuan