In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to install Git on a Linux distribution". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install Git on a Linux distribution.
Git is a popular open source version control system (VCS) originally developed for the Linux environment. Unlike CVS or SVN version control systems, Git version control is considered to be "distributed". In a sense, git's local working directory can be used as a fully functional repository with complete history and version tracking capabilities. Under this working model, collaborators submit content to their local warehouse (as opposed to always to the core warehouse) and, if necessary, selectively push to the core warehouse. This brings the scalability and redundancy necessary for large-scale collaborative systems to the version management system Git.
Install Git using 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 of each Linux distribution.
Debian, Ubuntu, or Linux Mint
The code is as follows:
$sudo apt-get install git
Fedora, CentOS or RHEL
The code is as follows:
$sudo yum install git
Or
The code is as follows:
$sudo dnf install git
Arch Linux
The code is as follows:
$sudo pacman-S git
OpenSUSE
The code is as follows:
$sudo zypper install git
Gentoo
The code is as follows:
$emerge-ask-verbose dev-vcs/git
Install Git from the source code
If for some reason you want to install Git from the source code, follow the instructions below.
Install dependency packages
Install its dependency packages before building Git.
Debian, Ubuntu or Linux Mint
The code is as follows:
$sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x
Fedora, CentOS or RHEL
The code is as follows:
$sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2x
Compile Git from source code
Download the latest version of Git from https://github.com/git/git/releases. Then build and install under / usr.
Note that if you plan to install to another directory (for example: / opt), replace the "--prefix=/usr" configuration command with a different path.
The code is as follows:
$cd git-x.x.x
$make configure
$. / configure-prefix=/usr
$make all doc info
$sudo make install install-doc install-html install-info
At this point, I believe you have a deeper understanding of "how to install Git on the Linux distribution". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.