24.3 C
Texas
angeloma
Senior Writer and partner

Install the latest version of GIT on CentOS 8 / RHEL 8 / Oracle Linux 8

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

- Advertisement -

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"

1.- Install the development tools
1.- Install the 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

2.- Install the libraries required
2.- Install the libraries required

Now, we can start to download Git using wget.

:~# wget https://github.com/git/git/archive/v2.23.0.zip -O latestgit.zip

3.- Download latest Git on CentOS 8 / RHEL 8 / Oracle Linux 8
3.- Download latest Git on CentOS 8 / RHEL 8 / Oracle Linux 8

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

4.- Configuring the source code before the installation
4.- Configuring the source code before the installation

Then, run the make command.

:~# make all

5.- Using the make command
5.- Using the make command

Now, start the installation.

:~# make install

6.- Install the latest version of Git on CentOS 8 / RHEL 8 / Oracle Linux 8
6.- Install the latest version of Git on CentOS 8 / RHEL 8 / Oracle Linux 8

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

7.- Git on CentOS 8 / RHEL 8 / Oracle Linux 8
7.- Git on CentOS 8 / RHEL 8 / Oracle Linux 8

So, enjoy it.

Conclusion

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.

Also, you can learn to install Git on Debian 10? or Ubuntu 18.04.

Please share this post with your friends and join our Telegram channel.

 

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

4 COMMENTS

  1. when I execute:
    make install
    I obtain
    make: *** No rule to make target ‘install’. Stop.
    how can I solve it ?

    when I execute:
    git –version

    I still have 2.18.4 verstion:
    git version 2.18.4

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article