我正在尝试epel-release
从 CentOS extras 存储库安装该软件包,但该存储库似乎是空的。 (我对linux也很陌生)
当我跑步时yum repolist
:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
repo id repo name status
base/7/i386 CentOS-7 - Base 7,114
extras/7/i386 CentOS-7 - Extras 0
updates/7/i386 CentOS-7 - Updates 1,437
repolist: 8,551
当我跑步时yum list extras
:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
我尝试过运行yum clean all
和yum update
,但似乎没有任何效果。
输出hostnamectl
:
Static hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: 4925cfdbb53e4e18b5ce1e3bd2d4ce0d
Boot ID: b3109364c8a14af9b37a81599f900755
Virtualization: oracle
Operating System: CentOS 7 (AltArch)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.16.1.el7.centos.plus.i686
Architecture: x86
输出rpm --query centos-release
:
centos-release-7-3.1611.el7.centos.i686
答案1
yum list extras
实际上是一个常规的 yum 命令。您正在寻找的可能是repoquery -a --repoid=extras
. “repoquery”命令是“yum-utils”包的一部分。
答案2
epel.repo
也在 EPELhttps://fedoraproject.org/wiki/EPEL→ →https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm... 除此之外:包装是也在额外/中。
安装下载的 epel.repo #cd Downloads/ && yum install epel-release-7-9.noarch.rpm
关于“yum repolist”:不知道“extras/7/i386”是什么。没有:http://mirror.centos.org/centos/7.3.1611/>>>http://mirror.centos.org/centos/7.3.1611/extras/...有四个 .i686 包。 + 268 .noarch 。并且:您确定 extras 设置为enabled=1 吗?我的yum repolist
是这个(CentOS 7.3-1611):
repo id repo name status
!base/7/x86_64 CentOS-7 - Base 9,360+3
!centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 5,174
!centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 403
!epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,722
!extras/7/x86_64 CentOS-7 - Extras 380
!updates/7/x86_64 CentOS-7 - Updates 1,838
repolist: 28,877
最新 CentOS-Base.repo 的副本在这里https://drive.google.com/file/d/0B7S255p3kFXNSG10b0lXeTUtRzA/view?usp=sharing