什么是虚拟包?

是一个虚拟软件包只是一个例子? 这个软件包没有依赖,可以删除吗?

[root@server ~]# yum info vzdummy-init-fc13-1.0-1.noarch Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.serverspace.co.uk * epel: epel.mirrors.ovh.net * extras: centos.serverspace.co.uk * updates: centos.serverspace.co.uk Installed Packages Name : vzdummy-init-fc13 Arch : noarch Version : 1.0 Release : 1 Size : 0.0 Repo : installed Summary : Dummy package to fix initscripts configs License : GPL Description : Dummy package to fix initscripts configs 

还有这个:

 vzdummy-glibc-2.12-1.7.el6.noarch //Package contain locale-archive that regenerated by glibc in post-install 

具有零依赖包

虚拟软件包有很多目的。

有时他们需要在版本或特定应用程序的重大更改之间进行升级

有时候他们依靠其他的软件包得到一堆东西。

有时候你使用一个虚拟包,因为你不想要真正的安装包,所以你需要创build一个虚拟包来满足反向依赖。 其他的东西取决于假人。

我不熟悉那个特定的软件包,但是假设你已经有很好的备份和恢复过程,请尝试删除它。 看看是否要删除你不期望的其他东西。

经常使用rpm可以获得更多关于已安装软件包的信息,然后yum提供。

 query-options [--changelog] [-c,--configfiles] [-d,--docfiles] [--dump] [--filesbypkg] [-i,--info] [--last] [-l,--list] [--provides] [--qf,--queryformat QUERYFMT] [-R,--requires] [--scripts] [-s,--state] [--triggers,--triggerscripts] 

例如, -q -i选项提供了与yum info输出相同的信息,但rpm -q --list <pkg_name>显示了软件包部署的所有文件。

在您试图解决某些问题的虚拟软件包的特定示例中,我期望rpm -q --scripts <pkg_name>显示通过安装(或删除)软件包来执行的任何脚本可能提供的最less的洞察力目的是作为部署的文件。

对于例如用作元软件包以获取一组相关软件包的虚拟软件包, rpm -q --requires <pkg_name>可能会有所帮助。