Git installation [install using the package manager and source code in CentOs respectively]

Source: Internet
Author: User
I am not familiar with linux operations, so I usually install software directly from the package manager. because I recently used git, of course I bought this git authoritative guide. The first step is to install

I am not familiar with linux operations, so I usually install software directly from the package manager. because I recently used git, of course I bought this git authoritative guide. The first step is to install git:

I use centos:

Yum install git

Yum install git-svn git-email git-gui gitk

Some minor errors occurred when using yum install git:

This is because CentOS needs to add the EPEL source, so:

Sudo rpm-Uvh http://mirrors.sohu.com/fedora-epel/5/i386/epel-release-5-4.noarch.rpm


Installed successfully!
Although the installation is simple, we recommend that you use the source code to install the package manager. the installed version may be different from the current version!
Source code installation:

Download the latest stable version of the source code from the download page of The Git official website, and then compile and install

$ Wget http://kernel.org/pub/software/scm/git/git-1.7.3.5.tar.bz2
$ Tar-xjvf git-1.7.3.5.tar.bz2
$ Git-1.7.3.5 cd
$ Make prefix =/usr all;
$ Sudo make prefix =/usr install;

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.