Linux Git is a handy manager tool. At first Git was developed for Linux and is now used in major systems. This article will introduce how to install Git in Linux system.
Installing Git with the Package Manager
Git is already supported by all major Linux distributions. So the easiest way to install it is to use the package manager for each Linux distribution.
Debian, Ubuntu, or Linux Mint
$ sudo apt-get install git
Fedora, CentOS or RHEL
$ sudo yum install git or $ Sudo dnf install git
Arch Linux
$ sudo pacman -S git
OpenSUSE
$ sudo zypper install git
Gentoo< Br>
$ emerge --ask --verbose dev-vcs/git
Installing Git from source
If for some reason you want to install Git from source, follow the instructions below operating.
Installing dependencies
Before building Git, install its dependencies.
Debian, Ubuntu or Linux Mint
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x
Fedora, CentOS or RHEL
$ sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2x
Compile Git from source code
From https: //github.com/git/git/releases Download the latest version of Git. Then build and install under /usr.
Note that if you plan to install it in another directory (for example: /opt), then replace the configuration command with “--prefix=/usr” with a different path.
$ cd git-x.x.x
$ make configure
$ . /configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
The above is how Linux installs Git The tutorial, as long as you learned to install Git operations, then Linux installation Git is still very fast.
In the Ubuntu 10.10 system, some users have to configure the R environment for work
There are many ways to add a Linux string. One is to add a string at the beginning and end of the te
We all know that the file encoding in Windows defaults to gbk or gb2312, but many u
In the Ubuntu system, it is best to check the integrity of the downloaded files (se
How can I use email to send emails under Linux lnmp?
How Linux cracks root password in single-user mode
CentOS 6.4 uses script to disable the touchpad.
Linux uses the sftp command to transfer files. Step
How to use the du and df commands to clear large files under Linux?
Steps to install IEs4Linux on Ubuntu 12.04
Linux System Shell Command Line Operation Method
How to fix the program error prompted by Ubuntu system?
Domestic system Linux Deepin 2014 detailed evaluation
Linux recovery root password two methods
Get permission to modify Windows 7 system files
Windows 7 SP1 Beta1 is completed by the end of next year. RTM
Win7 can not install software processing method
Win7 installation software error prompt error 1935 solution
Win7 can't access the shared printer how to solve
Windows XP self-extracting file production process comprehensive analysis
How to change the working group of win7 computer?
Optimize the cleaning of the registry to improve the boot speed of Windows7 system
Make tricks Win7 no longer pops up redundant error tips
Win7 system shutdown "hibernate" option does not see how to do