How to install git online in centos

Source: Internet
Author: User
This article mainly introduces how to install git online in centos. if you need it, refer to the following tag: CentOS

Before installing Git, you need to install some dependent packages. before installing the dependent packages, you can check whether the packages have been installed.

The shell command is as follows:

Copy codeThe code is as follows:
# Rpm-qa | grep zlib-devel

If no dependency package is installed, install the following dependency packages:

Copy codeThe code is as follows:
# Yum-y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
# Yum install curl-devel
# Yum install autoconf
# Wget # chmod + x git-1.8.3.2.tar.gz
# Tar xzvf git-1.8.3.2.tar.gz
# Cd git-1.8.3.2
# Autoconf
#./Configure -- with-curl =/opt/git
# Make
# Make install

Now git has been installed successfully. let's verify it:

Copy codeThe code is as follows:
# Git -- version
[Root @ AY140331154108013a0bZ git-1.8.3.2] # git version
Git version 1.8.3.2

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.