Any way to update GIT to 1.9, 2.0 or up?
Hey guys. I'm needing to install a WordPress plugin that requires GIT 1.9+, but cPanel comes with GIT 1.8 built-in.
git-1.8.3.1-13.el7.x86_64 is allegedly the last available update found by yum on cPanel servers.
That's almost 5 years old!
Can you ship a better/modern version? If this is by design, please ellaborate why not.
In the other hand, is there any way in which I could possibly force the update or install a parallel version to be used?
Thanks in advance.
-
git --version git version 2.17.0 cpanel all ready installs git 2 the centos/redhat version is 1.8 not really a cpanel issue the default git uses cpanel's version @ /usr/local/cpanel/3rdparty/lib/path-bin/git 0 -
Hello @Kent Brockman, @dalem is correct. If you prefer to use the version of Git included with cPanel & WHM, then you'd need to remove the operating system RPM for git, and then run the following command: /usr/local/cpanel/scripts/link_3rdparty_binaries
Thank you.0 -
So, "yum remove git" then /usr/local/cpanel/scripts/link_3rdparty_binaries and then what? 0 -
So, "yum remove git" then /usr/local/cpanel/scripts/link_3rdparty_binaries and then what?
Hello @Kent Brockman, No further steps are required. The /usr/local/cpanel/scripts/link_3rdparty_binaries script will link the cPanel-provided instance of Git to the system libraries:# /usr/local/cpanel/scripts/link_3rdparty_binaries Linking /usr/bin/git -> /usr/local/cpanel/3rdparty/bin/git Linking /usr/bin/git-receive-pack -> /usr/local/cpanel/3rdparty/bin/git-receive-pack Linking /usr/bin/git-shell -> /usr/local/cpanel/3rdparty/bin/git-shell Linking /usr/bin/git-upload-archive -> /usr/local/cpanel/3rdparty/bin/git-upload-archive Linking /usr/bin/git-upload-pack -> /usr/local/cpanel/3rdparty/bin/git-upload-pack
Thank you.0
Please sign in to leave a comment.
Comments
4 comments