How to install Git 2.0.4 in CentOS

Source: Internet
Author: User
Tags centos

Step 1: install the required package

First, make sure that the required packages are installed on your system. Run the following command to install the required package before compiling the Git source code!

# Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
# Yum install gcc perl-ExtUtils-MakeMaker

Step 2: Download and compile Git source code

# Cd/usr/src
# Wget
# Tar xzf git-2.0.4.tar.gz

After downloading

# Cd git-2.0.4
# Make prefix =/usr/local/git all
# Make prefix =/usr/local/git install
# Echo "export PATH = $ PATH:/usr/local/git/bin">/etc/bashrc
# Source/etc/bashrc

Step 3: Check the Git version

# Git -- version
Git version 2.0.4

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: 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.