centOs安装出现No package git available的解决办法

来源地址 【http://chinacheng.iteye.com/blog/1825538 】

 

centos安装git  

下载源代码安装后,git clone出现“fatal unable to find remote helper for 'https'”的错误,怀疑是git安装不完全 

使用yum安装,出现: 

Java代码   收藏代码
  1. Setting up Install Process  
  2. No package git available.  
  3. Nothing to do  



解决办法: 



需要先添加EPEL(Extra Packages for Enterprise Linux) repository: 

Java代码   收藏代码
    1. CentOS5.x 32-bit(x86/i386):  
    2.   
    3.  rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm  
    4.   
    5. CentOS5.x 64-bit(x64):  
    6.   
    7.  rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm  
    8.   
    9.  CentOS6.x32-bit (x86/i386):  
    10.   
    11.  rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm  
    12.   
    13. CentOS6.x 64-bit(x64):  
    14.   
    15.  rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm  

最后 yum -y install git  即可安装成功!

转载于:https://www.cnblogs.com/ishenghuo/p/4827876.html

你可能感兴趣的:(centOs安装出现No package git available的解决办法)