How to install git in centos6.5 using yum

Time:2021-7-21

1. Download the geekery repo file (root permission)

Copy code

The code is as follows:

cd /etc/yum.repos.d/
wget <a href=”http://geekery.altervista.org/geekery-el6-x86_64.repo”>http://geekery.altervista.org/geekery-el6-x86_64.repo</a>

2. To http://packages.sw.be/rpmforge-release Download the appropriate RPM package

Copy code

The code is as follows:

rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

3. To http://rpm.pbone.net/ Search rpm EPEL release

Copy code

The code is as follows:

epel-release-6-8.1.noarch.rpm

4. Install rpm

Copy code

The code is as follows:

rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm</p>
<p>rpm -ivh epel-release-6-8.1.noarch.rpm

5. yum -y install git

be accomplished

Copy code

The code is as follows:

git –version
git version 1.7.1