Installing Git on CentOs

前端 未结 2 536
渐次进展
渐次进展 2021-02-15 01:28

I want to install git on CentOs, i\'m running this command

yum install git-core

But the problem is, I am getting these errors:

         


        
2条回答
  •  南笙
    南笙 (楼主)
    2021-02-15 02:27

    This blog article by lishevita mentions:

    It turns out, Cpanel blocks installation of any perl packages through yum in order to make sure that nothing interferes with their customized packages.
    Pain in the NECK!

    The good news is that the perl packages that git needs won't mess with Cpanel, so you can go ahead and install them.
    Yum has a spiffy one time option to let you get around the excluded package problem.

    yum --disableexcludes=main install git
    

    I searched ALL OVER for this little tidbit, and only found it this post by Nick Andreson.
    Hopefully, having this post, and the link back to his post will help improve searches in the future so that you find your answer more easily!! (And thanks, Nick for your post!)

    Or you can use cPanel's own git located:

    root@CentOS-cPanel-box [/]# /usr/local/cpanel/3rdparty/bin/git --version
    git version 1.8.3.4
    

提交回复
热议问题