Я видел, что эти парни рекламировали много, но, не попробованный их: http://www.blacknight.com/
Очень легко загрузить исходный код и скомпилировать его самостоятельно, я даже нашел метод RPMForge громоздким.
Загрузить исходный код Git 2.11 и
make configure
./configure --prefix=/usr
make all
sudo make install install-doc install-html
мне нужно чтобы установить пару зависимостей, прежде чем make полностью завершится успешно.
sudo yum install libcurl-devel zlib-devel asciidoc xmlto
Your OS vendor (the CentOS project) may not have built a package for the latest version of git yet (or they may not be planning to, and instead intend to stick with the 1.7.x series in CentOS 6).
Software does not magically appear in packaging systems the day it's released by its author - packages need to be built, tested, approved, and pushed. If you require a version that your upstream vendor isn't shipping you can always build it yourself...
For stability, enterprise-oriented distributions like CentOS tend to stick with the major release of the tools that was present when the OS was released. Third-party repositories can be used to bump up to higher versions, but it's often not necessary. If Git 1.7 is working nicely for you, you should be fine sticking with it.
Вот что у меня сработало:
CentOS 6 поддерживает "параллельную" вселенную более новых компиляторов и инструментов, что не засоряет старые версии. Вы хотите, чтобы
yum install devtoolset-2
После его установки, выполните
scl enable devtoolset-2 bash
, который изменит ваш путь. Старая версия git'а будет находиться в /usr/bin/git
, а новая - в /opt/rh/..../git
. Более новая версия 1.8.4/.
Вы также получите более новую версию g++ (4.8) и т.д.
Вы также захотите последний devtoolset-2. Подробности о devtoolset-2 можно найти в другом ответе: https://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos/676337#676337
Используйте репозиторий IUS ( https://ius.io/ ), как указано на официальном веб-сайте git: ( https: // git-scm. com / download / linux )
Следуйте этим инструкциям:
rpm -U https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/git2u-all-2.16. 2-1.ius.centos7.noarch.rpm && yum install -y git