In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Linux installation git specific steps are what, I believe that many inexperienced people are helpless about this, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Git is an open source distributed version control system for efficient, high-speed version management of small to very large projects.
I. Yum installation
1. There is yum to install Git on Linux, which is very simple and requires only one line of command.
yum -y install git
Type git-version to see if Git is installed and to see its version number
By the way, yum install git is installed in/usr/libexec/git-core directory
The yum installation git is complete.
Second, download the latest source code compiled from GitHub and install yum installation is so simple, why learn to download the latest source code compiled from github and install it? Just now when you type the git --version command, I believe you have also seen that it is version 1.8.3.1, which is still quite old.
Yum installation is this shortcoming, the version you do not control. If you want to use the latest version of git, you have to download the source code and install it yourself.
1. Go to https://github.com/git/releases, where we can find all the released versions of git. Here we select the latest version of the tar.gz package.
2, Download the latest version of tar.gz Git to the local computer, use WinSCP tool to upload the compressed package to the Linux server/usr directory
3. Decompress the compressed package
tar -zxvf git-2.22.0.tar.gz
4. Enter the decompressed folder
cd git-2.22.0
5. After getting the decompressed source code, we need to compile the source code, but before that, we need to install the dependencies required for compilation.
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
Wait patiently for the installation to complete, enter y and press enter when prompted.
6, prompt, install the source code required to rely on, yum automatically help you install git, this time you need to uninstall the old version of git.
yum -y remove git7, Compile git source code
make prefix=/usr/local/git all8, install git to/usr/local/git path
make prefix=/usr/local/git install9, Configure environment variables
vi /etc/profile added at the bottom
export PATH=$PATH:/usr/local/git/bin(input:wq! Save modifications)
10. Refresh environment variables
source /etc/profile11, Check whether Git installation is complete
git --version At this point, download the latest source code from github and install git to complete the compilation.
After reading the above content, do you know what the specific steps of Linux installation git are? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
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: 201
*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.