Skip to content

Instantly share code, notes, and snippets.

@orrisroot
Last active April 18, 2023 08:44
Show Gist options
  • Save orrisroot/71d3e4688b3ee31a015f894cb6512bd7 to your computer and use it in GitHub Desktop.
Save orrisroot/71d3e4688b3ee31a015f894cb6512bd7 to your computer and use it in GitHub Desktop.
Install recent git rpm package (IUS version) on CentOS 7
#!/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
@plusiv
Copy link

plusiv commented Aug 18, 2021

Great! but git2u is no longer a valid package name in the IUS repository. I'd suggest reading the official package list for updates.

@orrisroot
Copy link
Author

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'.

@aktentasche
Copy link

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

@orrisroot
Copy link
Author

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