linux 29、 查看rpm包来源于哪个仓库

1 查找某个rpm包


yum search xxx
样例输出:
xxx.rpm : StackStorm all components bundle

分析:
可以看到  xxx.rpm这个rpm包的存在

注意:
请将 xxx替换为自己想要查找的rpm包名

2 查看某个rpm包的具体信息


yum info xxx
输出结果如下:
Name        : ......
Arch        : ......
Version     : ......
Release     : ......
Size        : ......
Repo        : yyy
Summary     : ......
URL         : ......
License     : ......
Description : ......
分析:
可以从Repo看出仓库的地址

注意:
请将 xxx替换为自己想要查找的rpm包名

3 查看repo仓库的具体信息


执行如下命令:
cd /etc/yum.repos.d
找到对应的仓库文件,具体如下
[.....]
name=xxx
baseurl=http://.....
enabled=1
gpgcheck=0()

可以看到baseurl对应于这个仓库的地址

猜你喜欢

转载自blog.csdn.net/qingyuanluofeng/article/details/86708989
29