我使用 reposyc 来获取 {base,extra,update} centos 存储库,但我无法下载源存储库。
我原来的 CentOS-Sources.repo 有以下几行:
[base-source]
name=CentOS-$releasever - Base Sources
baseurl=http://vault.centos.org/centos/$releasever/os/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
当我在命令下运行时
reposync --gpgcheck -l --repoid=base-source --download_path=/mnt/extra
它只是打印以下行:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* fasttrack: mirror.centos.jt.iq
甚至将我的 CentOS-Sources.repo 更改为:
[base-source]
name=CentOS-$releasever - Base Sources
baseurl=http://vault.centos.org/7.7.1908/updates/Source
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
它不起作用。