CentOS Install and update git

Source: Internet
Author: User

1.

#yum-y install git

#git--version

The downloaded version is displayed at this time 1.7.1

2. Import the certificate

#rpm--import Http://apt.sw.be/RPM-GPG-KEY.dag.txt

3. Installing the Rpmforge source

Open URL http://pkgs.repoforge.org/rpmforge-release/To see the latest version that fits

#rpm-I http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm//CentOS 64-bit

4. Update the Rpmforge-extra source

#yum--enablerepo=rpmforge-extras Update

On the way there are options: Is this OK [y/n]: Select Y, will update all software, take a long time, directly select N.

5.

#yum-y Enablerepo=rpmforge-extras provides git//view the GIT version that fits the system

At this point, check to the latest Git version that matches

Git-1.7.12.4-1.el6.rfx.x86_64

6. Install git

#yum--enablerepo=rpmforge-extras Install git-1.7.12.4-1.el6.rfx.x86_64

7. See if the GIT version is more granular and successful

#git--version

git version 1.7.12.4//updated at this time

CentOS Install and update git

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.