In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install and uninstall git on Linux systems. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
First, install git1. Installation related dependencies
Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker2. Delete the existing git in your environment. If you haven't installed it, just ignore it.
Yum remove git3. Download the tar package for git and go to the / usr/src/ directory
Wget https://www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz4. Extract the tar package
Tar-zxvf git-2.8.3.tar.gz5. Configure the installation path
. / configure prefix=/usr/local/git/6. Installation
Make & & make install7. Configure git environment variables
# load the configuration source / etc/profile8. Test, installation complete
Git-version
9. Be careful
In the middle, you may report an error when you perform the installation operation in step 6, which may be because when you install git dependencies above, some dependencies are not installed successfully. Remember to execute the installation command after installing the relevant dependencies, otherwise you will report an error.
Second, uninstall git1. Direct unloading
Yum remove git2. Enter the installation directory to uninstall
# check the git installation directory which-a git # enter the displayed git installation path cd / git installation path # under the git installation path, execute the uninstall command sudo rm-rf git*. Thank you for reading! This is the end of the article on "how to install and uninstall git in Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.