无法搜索源RPM - 它在回购中,为什么我找不到它

时间:2017-11-05 10:59:06

标签: centos rpm yum

当我搜索源RPM时,我在网站上看到它,但是当通过CLI使用Yum命令时 - 没有匹配,我缺少什么?

包是kernel-3.10.0-123.el7.src,我创建了一个文件" /etc/yum.repos.d/CentOS-Ilan.repo":

[root@CentOS73-x64 admin]# cat /etc/yum.repos.d/CentOS-Ilan.repo
[CentOS-7.0-Base]
name=CentOS-7.0 - Base
baseurl=http://vault.centos.org/7.0.1406/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[CentOS-7.0-SOURCE]
name=CentOS-7.0 - Source
baseurl=http://vault.centos.org/7.0.1406/os/Source/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[root@CentOS73-x64 admin]#

命令输出:

[root@CentOS73-x64 admin]# yum info kernel-3.10.0-123.el7.src
Loaded plugins: fastestmirror, langpacks
CentOS-7.0-Base                                                                                                                                               | 3.6 kB  00:00:00
CentOS-7.0-SOURCE                                                                                                                                             | 2.9 kB  00:00:00
base                                                                                                                                                          | 3.6 kB  00:00:00
extras                                                                                                                                                        | 3.4 kB  00:00:00
updates                                                                                                                                                       | 3.4 kB  00:00:00
(1/7): base/7/x86_64/group_gz                                                                                                                                 | 156 kB  00:00:00
(2/7): extras/7/x86_64/primary_db                                                                                                                             | 129 kB  00:00:00
(3/7): base/7/x86_64/primary_db                                                                                                                               | 5.7 MB  00:00:00
(4/7): updates/7/x86_64/primary_db                                                                                                                            | 3.6 MB  00:00:00
(5/7): CentOS-7.0-Base/group_gz                                                                                                                               | 157 kB  00:00:00
(6/7): CentOS-7.0-SOURCE/primary_db                                                                                                                           | 885 kB  00:00:00
(7/7): CentOS-7.0-Base/primary_db                                                                                                                             | 4.9 MB  00:00:01
Determining fastest mirrors
 * base: centos.spd.co.il
 * extras: centos.spd.co.il
 * updates: centos.spd.co.il
Error: No matching Packages to list
[root@CentOS73-x64 admin]#

当看http://vault.centos.org/7.0.1406/os/Source/SPackages/时 - 它就在那里!

1 个答案:

答案 0 :(得分:0)

百胜本身无法下载源代码转换器。您必须使用yumdownloader中的yum-utils

yumdownloader --source kernel