Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Any way to update GIT to 1.9, 2.0 or up?

Discussion in 'General Discussion' started by Kent Brockman, May 15, 2018 at 8:30 PM.

Tags:
  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,650
    Likes Received:
    58
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    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
     
    cPanelMichael and cPanelBenny like this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,145
    Likes Received:
    1,754
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    /usr/local/cpanel/scripts/link_3rdparty_binaries 
    Thank you.
     
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    So, "yum remove git"
    then
    /usr/local/cpanel/scripts/link_3rdparty_binaries
    and then what?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,145
    Likes Received:
    1,754
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    # /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.
     
    Kent Brockman likes this.
Loading...

Share This Page