"Git" Linux environment install Git

Source: Internet
Author: User

1 Installing a git dependency package

Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-extutils-makemaker

2 Deleting an existing git

Yum Remove git

3 Download git source code

1 Switch to your package file storage directory  :    cd/usr/local/     src2 download git install package:                wget https:// www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz   3 Unzip the GIT installation package:                 TAR-ZXVF git-2.8.  3. tar.gz         cd git-2.8.  34 Configuring the Git installation path:               ./configure prefix=/usr/local/git/5 compiling and installing: Make                  && Make install

4 adding git instructions to bash

vi/etc/profile# Add export PATH to the last line= $PATH:/usr/local/git//etc/profile

5 Checksum

Git--version

"Git" Linux environment install Git

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.