Debian or Kali install git

Source: Internet
Author: User

Install Git

It's time to try Git, but install it first. There are many kinds of installation methods, mainly divided into two types, one is to install by compiling the source code, the other is to use the installation package for a specific platform precompiled.

SOURCE Installation

If conditions permit, there are many benefits of installing from source code, at least the latest version can be installed. Every version of Git is constantly trying to improve the user experience, so it's great to be able to compile and install the latest version yourself from the source code. Some Linux versions come with packages that aren't updated in a timely fashion, so unless you're using the latest distro or backports, installing from the source code is the best option.

Git's work calls for code from libraries such as CURL,ZLIB,OPENSSL,EXPAT,LIBICONV, so you need to install these dependent tools first. On systems with Yum (such as Fedora) or systems with apt-get (such as the Debian system), you can install them using the following command:

$ yum Install curl-devel expat-devel gettext-devel   OpenSSL-devel zlib-devel$ apt-get Install Libcurl4-gnutls-dev libexpat1-Dev gettext   libz-dev Libssl-dev

Then, download the latest version of the source code from the following Git official site:

Http://git-scm.com/download

Then compile and install:

$ tar-zxf git-1.7.2.2. tar.gz$ cd git-1.7.2.2$ make prefix=/usr/local all$ sudo make prefix=/u Sr/local Install

Now you can use the git command to git clone the Git project repository locally so that it will be updated at any time in the future:

$ git clone git://git.kernel.org/pub/scm/git/git.git
Kali can be installed quickly with Apt-get:
Apt-get Install git

Debian or Kali 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.