CentOS Install git

Source: Internet
Author: User
Tags install openssl install perl

Reference Source: http://blog.csdn.net/lowkeyway/article/details/7190884

One: Installation dependent

Yum Install Zlib-devel
Yum Install Openssl-devel
Yum Install Perl
Yum Install Cpio
Yum Install Expat-devel
Yum Install Gettext-devel

Yum Install autoconf

Two: Download git

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
TARXZVF GIT-LATEST.TAR.XZ

The. tar.gz source is an empty file so download. XZ can select files to download via http://www.codemonkey.org.uk/projects/git-snapshots/git/

Three: Unzip:

xz-d GIT-LATEST.TAR.XZ//Double compression package, extract Git-latest.tar file after decompression

TAR-XVF Git-latest.tar

Install XZ If the XZ command is invalid

Yum-y Install XZ

Four: Install Git

LS//View the extracted folder name

CD git-2015-04-12//Enter the folder to actually see the folder name as the subject

Autoconf

./configure--with-curl=/usr/local
Make

Make install

Five: Installation complete and use

Git--version

The installation succeeds when the version number appears

The path to the CD to extract

git clone https://git.oschina.net/wisdomofgod/wisdom.git//followed by git address to download



CentOS Install 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.