我的 CentOS 8.1.1911 中有两个 rpm 存储库。详情如下:
# virt-1.repo
[appstream]
name=CentOS Linux 8-stream - AppStream
baseurl=http://mirrors.ustc.edu.cn/centos/8-stream/AppStream/$basearch/os/
gpgcheck=0
enabled=1
# virt-2.repo
[centos-advanced-virtualization]
name=CentOS Linux 8-stream - Advanced Virtualization
baseurl=http://mirrors.ustc.edu.cn/centos/8-stream/virt/$basearch/advancedvirt-common/
gpgcheck=0
enabled=1
这两个 repos 都包含包libvirt
,并且 repo 中有较新的一个centos-advanced-virtualization
。我的操作如下:</p>
yum clean all && yum makecache
yum list libvirt --showduplicates
,但我从appstream
# yum list libvirt --showduplicates
Last metadata expiration check: 0:00:18 ago on Sun 26 Sep 2021 05:22:42 PM CST.
Available Packages
libvirt.x86_64 6.0.0-35.module_el8.5.0+746+bbd5d70c appstream
libvirt.x86_64 6.0.0-36.module_el8.5.0+821+97472045 appstream
- 删除应用程序流,
mv virt-1.repo virt-1.repo.bak && yum makecache
yum list libvirt --showduplicates
,我可以从centos-advanced-virtualization
# yum list libvirt --showduplicates
Last metadata expiration check: 0:00:30 ago on Sun 26 Sep 2021 05:26:08 PM CST.
Available Packages
libvirt.x86_64 7.0.0-9.el8s centos-advanced-virtualization
libvirt.x86_64 7.0.0-13.el8s centos-advanced-virtualization
libvirt.x86_64 7.0.0-14.el8s centos-advanced-virtualization
libvirt.x86_64 7.4.0-1.el8s centos-advanced-virtualization
libvirt.x86_64 7.5.0-1.el8s centos-advanced-virtualization
libvirt.x86_64 7.6.0-2.el8s centos-advanced-virtualization
那么,为什么我不能在一开始就获得较新的呢?我错过了什么?