

Below is the snapshot of my server details. The command yum install git always tells that v1.8 is already installed and I am unable to proceed further. I would like to upgrade git to the latest version. You can now host and collaborate on your projects more efficiently.I’m running git v1.8 on my CentOS 7.8 machine. Git is now successfully installed and configured in Rocky Linux 8. To verify that your name and email have been configured: $ git config -list Similarly, configure your email as shown: $ git config -global user.email "YOUR-EMAIL" Provide your name and email address as follows:įirst, set up your username globally as shown: $ git config -global user.name "YOUR-NAME" Use the git config command to configure git for the first time. In this step we will configure git so that your commit messages contain the correct information. Now, execute the commands below to install git: $ sudo make prefix=/usr/local all $ sudo make prefix=/usr/local install Set up Git Then, navigate into the directory: $ cd git-2.34.1 Next, extract the contents of the git archive file: $ sudo unzip v2.34.1.zip At the time of writing this guide, version 2.34.1 is the latest stable release.

Then, download the latest release of Git from the official site. Execute the command: $ sudo dnf install gettext-devel curl-devel expat-devel openssl-devel perl-CPAN perl-devel zlib-devel unzip cmake gcc make -y First, install the essential Git requirements for RockyLinux 8. This will not be maintained by your package manager. If you wish to install the most recent release of Git you need to compile and build it from source.

Then, type y and press enter to proceed with the git installation.Ĭheck the version of git installed with the command: $ git -version To install git via appstream run: $ sudo dnf install git

You should compile and build git from source to obtain the latest version. The version in the default repository, however, may not be the latest release of git. The simplest option is to install git from the App stream default repository. Git is available in Rocky Linux default repositories. This post will show you how to use two different approaches to install Git on RockyLinux 8. Git repositories are hosted on sites like Github and Bitbucket. It helps with managing large projects efficiently. It allows multiple developers to contribute to the same project at the same time while tracking changes, revisions, and contributions. Git is a popular version control system used in modern software development.
