Install git-1.9.0 on Linux CentOS 6.5 (Final)

Source: Internet
Author: User

The default version of the CentOS 6.5 (Final) installation is 1.7.1.3, and we want to install version 1.9.0. Since there is no version 1.9.0 in the RPM installation, we need to find other ways to install it.

There are many articles on the internet about how to compile and install from Git source program, I am not going to introduce the installation process here, just to make a summary.

From the GIT source program to install roughly two categories, one is the git source program in the Make install installation, the other is the source program Rpmbuild Packaging, and then the Yum Localinstall installation. Both of these methods can be installed successfully, but using the make install method to bypass the Yum installation mode gives the impression of an unorthodox feeling. After all, Yum is the CentOS standard installer and is recommended to be installed in Rpmbuild+yum mode.

If you use make install and then you want to uninstall what to do. At this time, the non-orthodox nature appeared. If you install it with Orthodox yum, and then you want to uninstall it, you only need to execute the Yum remove command. But with make install to the installation will be clear to make install exactly what files installed, and then deleted one by one, more cumbersome, and even delete dirty. If you need to uninstall Git installed with make install, see: Http://serverfault.com/questions/444289/how-to-uninstall-git-installed-from-the-source

In addition, if you install with make install, when you execute the Yum list, it still shows as the old version, giving the illusion.

See this article for how to install from a git source program with Rpmbuild+yum: http://itisnormal.com/site/create-an-rpm-file-from-a-tar-gz/

In addition, I like to do the same as in the Romans, Linux will have to have a Linux look, priority to adopt the Orthodox model. It's better to use Windows if you're playing with Linux and you're always on the mouse.

I find that many times people use./bin/catalina.sh or./bin/ Startup.sh to start Tomcat, which is somewhat unorthodox (of course, this is the Orthodox command to start Tomcat, but not the orthodox way to start the service in a Linux environment), because the standard command to start the Linux service is service, as long as the service is started with this command. Imagine if you were ready to start Tomcat on a shared server, and if you were in an unorthodox way, you'd have to find out where Tomcat was installed first. /usr/local/tomcat? /usr/share/tomcat? /opt/tomcat? Wait a minute. In the Orthodox way, you only need to execute the service Tomcat start command (check the services with the Chkconfig--list command first if necessary).

This is also the same as Maven and Ant, when using ant you have to know exactly what target is defined in Build.xml and then execute it separately. This problem is highlighted when Build.xml is written by someone else. And with Maven standardized, no matter who wrote the Pom.xml file, the project compile, test, install, deploy and other operational commands are the same, very convenient for many people team development.

Install git-1.9.0 on Linux CentOS 6.5 (Final)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.