Installing Git on CentOS

8

6

How install git on CentOS? I find this manual. Is it good?

Pavel Druzyak

Posted 2010-02-23T14:50:01.783

Reputation:

Question was closed 2012-03-15T20:49:40.013

Not programming question - and have you tried? It looks fine. – None – 2010-02-23T14:51:59.610

This is the server on which the application is running right now, so I'm afraid to experiment. – None – 2010-02-23T15:06:49.767

Answers

9

yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
cd /usr/local/src
wget http://kernel.org/pub/software/scm/git/git-1.7.5.tar.gz
tar xzvf git-1.7.5.tar.gz
cd git-1.7.5
make prefix=/usr/local all
make prefix=/usr/local install

Pavel Druzyak

Posted 2010-02-23T14:50:01.783

Reputation:

5

Add the EPEL repository, then install it using yum.

Ignacio Vazquez-Abrams

Posted 2010-02-23T14:50:01.783

Reputation: 100 516

4

yum install git-core

Qwerty

Posted 2010-02-23T14:50:01.783

Reputation:

No Match for argument: git-core – None – 2010-02-23T15:07:30.420

2

You need to add repository, here's how to do this: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

– None – 2010-02-23T15:26:07.720

1

Note everyone: git comes in the stranded centos 6 repos but for 5 you will need EPEL or freshmeat etc or from source.

sabgenton

Posted 2010-02-23T14:50:01.783

Reputation: 614

0

I provide RPMs for git 1.7 in the Webtatic repository, as the kernel.org RPM's are incompatible with CentOS's old rpm installer.

http://www.webtatic.com/blog/2009/09/git-on-centos-5/

Andy

Posted 2010-02-23T14:50:01.783

Reputation: 101