repoquery根据yum link查rpm包:
repoquery --nvr --repoid asd --repofrompath=asd,http://mirror.centos.org/centos/7.9.2009/updates/x86_64/ -q -a
【参数】:
--nvr 以rpm包nvr的形式显示 ---> zlib-1.2.7-19.el7_9
--repoid asd
--repofrompath=asd
在repoquery使用网络yum link源时配合使用,asd需要每次查都动态变化
根据网络yum link源repoquery查包来源于link源中哪包?
repoquery --repoid asd --repofrompath=asd,http://mirror.centos.org/centos/7.9.2009/updates/x86_64/ --whatprovides pkgconfig\(flatpak\)
【参数】:
--whatprovides 查哪个包提供这个依赖
根据网络yum link源repoquery查哪个包安装需要zlib这个Requires
repoquery --nvr --repoid asd --repofrompath=asd,http://mirror.centos.org/centos/7.9.2009/updates/x86_64/ --whatrequires zlib
【参数】:
--whatrequires 查哪个包在安装时需要zlib这个Requires
用reposync 同步YUM源到本地,搭建本地YUM源:
将目标repo放到/etc/yum.repos.d下面
[root@localhost my]<