Last active
April 18, 2023 08:44
-
-
Save orrisroot/71d3e4688b3ee31a015f894cb6512bd7 to your computer and use it in GitHub Desktop.
Install recent git rpm package (IUS version) on CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum install epel-release | |
sudo yum install https://repo.ius.io/ius-release-el7.rpm | |
sudo yum update | |
sudo yum install git236 |
Thank you for the information. I have updated this script. Also, since git seems to have already released version 2.3X, I changed part of the file name from 'latest' to 'recent'.
https://centos7.iuscommunity.org/ius-release.rpm does not exists any more, i used
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install https://repo.ius.io/ius-release-el7.rpm
sudo yum update
sudo yum install git224
Thanks, updated! The epel-release package is now contained in the extra packages, and the IUS repository’s latest git version seems to be 236.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great! but git2u is no longer a valid package name in the IUS repository. I'd suggest reading the official package list for updates.