:: krowemoh

Friday | 13 DEC 2024
Posts Links Other About Now

previous
next

Updating Git on RHEL 7.4

2022-11-19

RHEL 7.4 comes with an old version of git and to update it, we'll need to add an extra couple of repos and then remove and reinstall git.

This will install the two repos we will need.

yum install https://repo.ius.io/ius-release-el7.rpm
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Next we remove git and reinstall it.

yum remove git
yum install git236

This is to install the latest version of git which is git 2.36

The reason I needed to update git was due to sourcegraph using a newer version of git in their src-expose utility.