Open source softwares - GIT

Back to Course

Lesson Description

Lession - #1111 Git Installation

Installing on Windows

There also are many ways that to install git on Windows. the most official build is available for download on the git web site. just go to https://git-scm.com/download/win and also the download can begin automatically. Note that this is a project called git for Windows, that is separate from git itself; for more data on it, attend https://gitforwindows.org.

To get an automated installation you can use the git Chocolatey package. Note that the Chocolatey package is community maintained.

Installing from source

Some individuals may instead find it helpful to install git from source, as a result of you’ll get the most recent version. The binary installers tend to be a bit behind, though as git has matured in recent years, this has made less of a distinction.

If you do want to install git from source, you wish to possess the following libraries that git depends on: autotools, curl, zlib, openssl, expat, and libiconv. for instance, if you’re on a system that has dnf (such as Fedora>
or apt-get (such as a Debian-based system>
, you can use one amongst these commands to install the minimal dependencies for compiling and installing the git binaries:

$ sudo dnf install dh-autoreconf curl-devel expat-devel gettext-devel \
openssl-devel perl-devel zlib-devel
$ sudo apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \
gettext libz-dev libssl-dev

In order to be ready to add the documentation in numerous formats (doc, html, info>
, these extra dependencies are required:

$ sudo dnf install asciidoc xmlto docbook2X
$ sudo apt-get install asciidoc xmlto docbook2x


Users of RHEL and RHEL-derivatives like CentOS and Scientific UNIX operating system will need to enable the EPEL repository to download the docbook2X package.

If you’re using a Debian-based distribution (Debian/Ubuntu/Ubuntu-derivatives>
, you also want the install-info package:

$ sudo apt-get install install-info

If you’re employing a RPM-based distribution (Fedora/RHEL/RHEL-derivatives>
, you also need the getopt package (which is already installed on a Debian-based distro>

$ sudo dnf install getopt

Additionally, if you’re victimization Fedora/RHEL/RHEL-derivatives, you need to try and do this:

$ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi

due to binary name differences.

When you have all the mandatory dependencies, you'll be able to go ahead and grab the latest labelled release tarball from many places. you can get onto via the kernel.org site, at https://www.kernel.org/pub/software/scm/git, or the mirror on the GitHub web site, at https://github.com/git/git/releases. It’s typically a little clearer what the latest version is on the GitHub page, however the kernel.org page conjointly has release signatures if you wish to verify your download.

Then, compile and install:

$ tar -zxf git-2.8.0.tar.gz
$ cd git-2.8.0
$ create configure
$ ./configure --prefix=/usr
$ create all doc info
$ sudo create install install-doc install-html install-info

After this can be done, you can also get git via git itself for updates:

$ lowlife clone git://git.kernel.org/pub/scm/git/git.git