How can git be installed on CENTOS 5.5?

前端 未结 14 1955
刺人心
刺人心 2020-12-02 06:18

How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg.

root@host [~]# sudo yum install git
Loaded plugins: fastes         


        
14条回答
  •  爱一瞬间的悲伤
    2020-12-02 06:51

    If you are using CentOS the built in yum repositories don't seem to have git included and as such, you will need to add an additional repository to the system. For my servers I found that the Webtatic repository seems to be reasonably up to date and the installation for git will then be as follows:

    # Add the repository
    rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
    
    # Install the latest version of git
    yum install --enablerepo=webtatic git-all
    

    To work around Missing Dependency: perl(Git) errors:

    yum install --enablerepo=webtatic --disableexcludes=main  git-all
    

提交回复
热议问题