“错误:无所事事”使用yum安装GIT时

时间:2015-05-15 05:00:05

标签: linux git installation redhat

GIT

安装version 4.1.2(1)-release (x86_64-redhat-linux-gnu)时出现以下错误

命令:sudo yum install git

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
No package git available.
Error: Nothing to do

命令:yum repolist

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
repolist: 0

1 个答案:

答案 0 :(得分:0)

<强> STEPS

  1. 使用以下命令
  2. 安装通常称为EPEL的Enterprise Linux Extra软件包
      

    yum install epel-release

    2.之后,您会注意到以下存储库文件已添加到服务器的yum.repos.d目录中。

      

    ls -lh /etc/yum.repos.d /

    1. 然后继续你的命令。