Many human and technological factors are involved in the development of an application. This is because there are many tools that help make the coding and maintenance process as simple and organized as possible. In this sense, a version control system is necessary to organize the development cycle of an application in general. Of all of them, Git is one of the most popular and has the best support from developers. In this post, you will learn how to install the latest version of Git on CentOS 8 / RHEL 8 / Oracle Linux 8.
As time goes by, the versions of the programs that come in the repositories of the Linux distributions become old. Similarly, program developers often release new versions with new features or bug fixes and we miss them.
Git is a program with quite active development and that requires to be always updated to have news and security fixes. So it is better to do it. And the best way to do it is to compile the source code of the application yourself.
Let us get started.
The latest version of GIT on CentOS 8 / RHEL 8 / Oracle Linux 8
Open a terminal and log in as root user, in case you do not have sudo. Then, install all the tools to compile and build from the source code.
:~$ su :~# dnf groupinstall "Development Tools"
Then, it is necessary to install some packages that will help us with the process.
:~# dnf install wget unzip curl
Now it is necessary to install some libraries necessary for Git compilation.
:~# dnf install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel
Now, we can start to download Git using wget.
:~# wget https://github.com/git/git/archive/v2.23.0.zip -O latestgit.zip
Then, unzip it. And access the folder.
:~# unzip latestgit.zip :~# cd git-2.23.0/
After that, configure the source before starting the compilation.
:~# make configure :~# ./configure --prefix=/usr/local
Then, run the make command.
:~# make all
Now, start the installation.
:~# make install
And that is it. Git is installed. If you want to check, you can use the Git command to display the current version.
:~# git --version
So, enjoy it.
Git is a pretty good version control system. It is one of the best. And by the way, if we combine it with a powerful Linux distribution like CentOS 8 or RHEL 8 or Oracle Linux 8, it is better used. Now that you know how to install its latest stable version, it’s time to make the most of it.
Please share this post with your friends and join our Telegram channel.