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

Windows Articles

How to enable and disable SMB1/SMB2 in Windows 10

Hello! Windows 10 is an operating system that integrates various protocols to ensure its use with internal and external processes. Indeed, one...

Install Wine 5 on Debian 10

Hi, folks. In this post, I will help you install Wine 5 on Debian 10. Wine is one of...

Is ReactOS a real alternative to Windows?

Oh! The eternal struggle of computer operating systems. Windows vs. GNU/Linux and Mac as a distant spectator However, there are also interesting...

How to install Firebird on Ubuntu 20.04/ 18.04?

Database management systems are sufficient for many kinds of projects. Of course, they abound with MySQL / MariaDB or PostgreSQL popular but...

How to disable Firewall in Windows Server 2019/2016

Hello! The Firewall performs an essential security task on any version of Windows Server. In fact, it has the mission of preventing...
angeloma
angeloma
Senior Writer and partner

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"

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.

 

More articles

3 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

How to enable and disable SMB1/SMB2 in Windows 10

Hello! Windows 10 is an operating system that integrates various protocols to ensure its use with internal and external processes. Indeed, one...

Install Wine 5 on Debian 10

Hi, folks. In this post, I will help you install Wine 5 on Debian 10. Wine is one of...

Is ReactOS a real alternative to Windows?

Oh! The eternal struggle of computer operating systems. Windows vs. GNU/Linux and Mac as a distant spectator However, there are also interesting...

How to install Firebird on Ubuntu 20.04/ 18.04?

Database management systems are sufficient for many kinds of projects. Of course, they abound with MySQL / MariaDB or PostgreSQL popular but...

How to disable Firewall in Windows Server 2019/2016

Hello! The Firewall performs an essential security task on any version of Windows Server. In fact, it has the mission of preventing...