![]() Now that you have Git installed on your CentOS machine, it is a good idea to set up your personal information. Later, when you want to update to a newer version, download the archive and repeat the build process. ![]() ![]() Type git -version to verify the installation: git -version git version 2.23.0 Run the following two commands to compile and install Git on your CentOS system: sudo make prefix=/usr/local all sudo make prefix=/usr/local install Navigate to the directoryĭownload the tar.gz file as using the link you copied earlier: sudo wget -O Īnd change to the git source directory by typing: sudo tar -xf cd git-* ![]() We are going to download Git source in the /usr/src directory, which is the common location to place source files. tar.gz:Ĭurrently, the most recent stable Git version is 2.23.0, but it may be different for you. Once the installation is complete, open your browser, visit the Git project’s mirror on GitHubĪnd copy the latest release link URL that ends in. Start by installing the dependencies necessary to build Git on CentOS: sudo yum groupinstall "Development Tools" sudo yum install curl-devel expat-devel gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel However, you will not be able to maintain your Git installation through the yum package manager. Installing Git from the Source #Ĭompiling Git from the source allows you to install the latest Git version and to customize the build options. That’s it! You have installed Git, and you’re ready to use it. Verify the installation by typing the command below, which will print the Git version: git -versionĪt the time of writing this article, the current version of Git available in the CentOS 8 repositories is 2.18.1. To install Git on your CentOS system: sudo yum install git Run the following command as root or user with sudo privileges The Git package is included in the CentOS’s default repositories. If you want to install the latest stable version of Git from source, scroll down to the Installing Git from the Source The easiest and the recommended way to install Git is to install it using the yum package management tool. This tutorial explains how to install Git on CentOS 8. ![]() Git is originally developed by Linus Torvalds ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |