Install git or upgrade git without apt-get or yum

I have several Linux boxes that prevent me from using yum to install packages. Instead, I need to download zip or tar, and then use the package manager to install items in my Linux windows.

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 only a zip file? Where can I find the package to install? Has anyone else had this problem?

+4
source share
1 answer

I had the same problem. I tried installing git from the source and it works.

Install these packages first:

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

Getting git scm source code:

git -latest.tar.gz

Compiling git scm from source

tar xzvf git-latest.tar.gz
cd git-{date} // edit it
autoconf
./configure --with-curl=/usr/local
make
make install
+1
source

Source: https://habr.com/ru/post/1614628/


All Articles