BinaryGuru

Hacking digital systems

Category Archives: Uncategorized

Upgrade GIT 1.8.x to GIT 2.10.x on RHEL Server 7.3


1. Install the latest updates

In this step, you will download and install the latest updates for your system from Red Hat. In the process, you will verify that your system has a current Red Hat subscription and is able to receive updates.

First, start a Terminal window from the Application menu. Then, after using su to change to the root user ID, use subscription-manager to verify that you have access to Red Hat software repositories.

$ su -
# subscription-manager repos --list-enabled

If you don’t see any enabled repositories, your system might not be registered with Red Hat or might not have a valid subscription. See Troubleshooting and FAQ for more information.

Now download and install any available updates by running yum update.

# yum -y update

If yum updates the kernel package or installs a large number of updates, you should reboot your system. You can do this from the VM’s desktop by clicking the down arrow icon in the upper right corner, then clicking the power icon. Alternatively you can reboot the system from the command line:

# reboot

(You do not nee to reboot the machine unless this is a fresh install)


2. Enable additional software repositories

In this step you will configure your system to obtain software from the Optional RPMs and RHSCL software repositories. The Optional RPMs repository includes a number of development packages. The RHSCL repository includes the both Red Software Collections as well as Red Hat Developer Toolset (DTS).

$ su -
# subscription-manager repos --enable rhel-server-rhscl-7-rpms
# subscription-manager repos --enable rhel-7-server-optional-rpms
# subscription-manager repos --enable rhel-7-server-extras-rpms

3. Extra Packages for Enterprise Linux (EPEL)

You need to install the EPEL repository:

# sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

3. Inline with Upstream Stable (IUS)

You need to install the IUS repository:

# sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

4. Replace GIT 1.8.x with GIT 2.10.x

# sudo yum shell
> erase git
> install git2u
> quit

5. Check to make sure GIT has been upgraded.

# git --version
git version 2.10.2

Resources:

Advertisements