2015-05-28 30 views
1

我使用的是红帽,我需要安装make。但百胜没有找到厂名包:Redhat没有包可用

# yum install make --verbose 
Config time: 0.059 
Yum Version: 3.2.22 
Setting up Package Sacks 
pkgsack time: 0.084 
rpmdb time: 0.000 
Setting up Install Process 
Checking for virtual provide or file-provide for make 
Searching pkgSack for dep: make 
No package make available. 
Nothing to do 

我试图安装组开发工具太:

# yum groupinstall 'Development Tools' 
Setting up Group Process 
Failed to add groups file for repository: epel - comps file is empty/damaged 
Warning: Group Development Tools does not exist. 
No packages in any requested group available to install or update 

我repolist如下:

# yum repolist 
epel                 | 3.7 kB  00:00 
rhel-source               | 2.6 kB  00:00 
rpmforge                | 1.9 kB  00:00 
repo id     repo name           status 
epel      Extra Packages for Enterprise Linux 5 - x86_64  6,733 
rhel-source    Red Hat Enterprise Linux 5Server - Source   0 
rpmforge     RHEL 5Server - RPMforge.net - dag     11,403 
repolist: 18,136 
+0

您是否在使用Red Hat或类似CentOS?如果您使用的是红帽,您的系统是否附加到有效订阅? 'yum repolist'的输出是什么? – larsks

+0

检查你的repo配置http://wiki.centos.org/Using_protectbase_and_fastestmirror_yum_plugins –

+0

是的,我正在使用Red Hat 5.7。我用yum reposlit的结果编辑我的帖子。 –

回答

6

我加入的碱红使用以下命令的Hat存储库:

cd /etc/yum.repo.d 
wget http://public-yum.oracle.com/public-yum-el5.repo 
cd /etc/pki/rpm-gpg/ 
wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 

现在yum安装制作。

+0

如果GPG密钥检索失败,出现错误没有这样的文件或目录:'/ etc/pki/rpm-gpg/RPM-GPG-KEY-oracle',然后运行: “wget https://public-yum.oracle (不带引号) –

+0

使用http而不是https来代替https// -PGPG-KEY-oracle-el5 -o/etc/pki/rpm -gpg/RPM-GPG-KEY-oracle -no-check-certificate GPG检索,它会工作。 – richstep