我在Redhat Enterprise7.0实例上安装了以下两个软件包
bind-license-9.9.4-14.el7_0.1.noarch
bind-libs-lite-9.9.4-14.el7_0.1.x86_64"repoquery -i“命令告诉我,这些包的源rpm是绑定的。
repoquery -i bind-license-9.9.4-14.el7_0.1.noarch
Name : bind-license
Version : 9.9.4
Release : 14.el7_0.1
Architecture: noarch
Size : 26019
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Group : Applications/System
URL : http://www.isc.org/products/BIND/
Repository : rhel-7-server-rpms
Summary : License of the BIND DNS suite
Source : **bind-9.9.4-14.el7_0.1.src.rpm**
Description :
Contains license of the BIND DNS suite.
Similarly if I use the yum downloader to download the source rpms of above 2 packages the bind source rpm (bind-9.9.4-14.el7_0.1.src.rpm) is downloaded.但是,如果我们尝试更新绑定,这里就是我得到的
yum update bind
Loaded plugins: product-id, subscription-manager
Package(s) bind available, but not installed.
**No packages marked for update**我的问题是为什么repoquery和question加载程序报告绑定-9.9.4-14.el7_0.1.src.rpm作为源rpm。如果bind是正确的源rpm,那么为什么"yum更新绑定“表示绑定没有安装在系统上?
发布于 2015-04-15 00:46:13
源rpm可以创建一个或多个二进制rpm。除非您正在构建自己的二进制rpm,否则不需要担心源rpm。因此repoquery向您展示了bind-9.9.4-14.el7_0.1.src.rpm是绑定许可的源rpm。同样的资源rpm创建了绑定、绑定库、绑定许可、绑定-实用程序(还有更多)。
发布于 2015-04-14 22:07:10
repoquery将查询一个存储库,这意味着一个存储大量RPM的远程服务器,并告诉您有关它的一些信息(即:包含在这个RPM中的文件)。repoquery不在乎您所请求的包是否安装在您的系统上,除非您添加了--installed标志。
如果添加此标志,则键入的命令将不会输出任何内容:
repoquery --installed -i bind-license-9.9.4-14.el7_0.1.noarch因此,实际上,Bind并没有安装在您的系统上。若要列出实际安装的包,可以尝试以下操作之一:
repoquery --installed -a或
yum list installedhttps://unix.stackexchange.com/questions/196242
复制相似问题