我正在尝试在 Red Hat Enterprise Linux 6.5 服务器上安装 git,但遇到了困难。我无法使用 yum 找到 git 的包依赖项。
[root@FOOBAR mydir]# yum install curl-devel expat-devel gettext-devel \
> openssl-devel zlib-devel
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
No package curl-devel available.
No package expat-devel available.
No package gettext-devel available.
No package openssl-devel available.
No package zlib-devel available.
Error: Nothing to do
阅读了一些论坛帖子后,我找到了 EPEL 包这里,并安装它:
[root@FOOBAR mydir]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.IlnMHM: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
但是即使在此之后我仍然遇到同样的错误。有人可以帮我吗?
更新:的输出yum repolist
:
[root@FOOBAR ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 10,657
repolist: 10,657
更新2:我将/i386/
其更改为,/x86_64/
因为我删除了 i386 并将其替换为 epel 64 位存储库。
答案1
您似乎没有注册RHN
,因此您无法从Redhat
的基础存储库下载。
不注册就无法获得Redhat
官方包。
如果您没有RHN credentials
,您可以使用Centos
基本存储库。看到这个关联更多细节。