In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the "centOS installation of high-version git method" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "centOS installation of high-version git method" article can help you solve the problem.
1. Check the existing git version
# git-version
2. You can view the git version in the yum source through the yum info git command. If it is the version you want, you can install it directly through yum, yum install git.
3. Uninstall the lower version of git
# yum remove git
4. Install the dependent library of git
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
# yum install gcc perl-ExtUtils-MakeMaker
5. Download the high version of git
# wget https://github.com/git/git/archive/v2.9.2.tar.gz
6. Decompression
# tar zxvf git-2.9.2.tar.gz
Here, it is decompressed to the current directory, or you can specify the corresponding directory later.
7. Enter the directory, compile and install
# cd git-2.9.2
#. / configure-prefix=/usr/local/git
# make & make install
8. Some applications may also need to configure their own environment variables, so that they can directly use the command line commands provided in the application. The configuration of environment variables can be temporarily configured using the export command, or written directly into / etc/bashrc, and then source / etc/bashrc to complete the permanent configuration.
The etc/bashrc file also involves other environment variable configuration files.
9. After the installation is complete, you can use git-- version to check whether the installation is successful.
This is the end of the introduction to "how to install a high version of git in centOS". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.