RHEL5.5 yum 在 repo 上看不到包(xen)?

RHEL5.5 yum 在 repo 上看不到包(xen)?

我正在尝试在 RHEL 5.5 上通过 yum 安装 xen。
当我浏览此处的 repo 时:
http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/

我可以看到我想要的包。具体来说是
xen-3.0.3-105.el5_5.5.src.rpm
直接链接:http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/xen-3.0.3-105.el5_5.5.src.rpm

但是当我这样做

yum search xen  

我明白了

hp-nx_nic-tools.x86_64 : HP NC-Series QLogic user components for Linux driver
kernel-xen.x86_64 : The Linux kernel compiled for Xen VM operations
kernel-xen-debuginfo.x86_64 : Debug information for package kernel-xen
kernel-xen-devel.x86_64 : Development package for building kernel modules to
                        : match the kernel.
kmod-be2iscsi-xen-rhel5u5.x86_64 : be2iscsi kernel module(s)
kmod-be2net-xen-rhel5u5.x86_64 : be2net kernel module(s)
kmod-igb-xen-rhel5u5.x86_64 : igb kernel module(s)
kmod-lpfc-xen-rhel5u4.x86_64 : lpfc kernel module(s)
kmod-lpfc-xen-rhel5u5.x86_64 : lpfc kernel module(s)
kmod-xenpv.x86_64 : xenpv kernel module(s)
xen-debuginfo.i386 : Debug information for package xen
xen-debuginfo.x86_64 : Debug information for package xen
xen-libs.i386 : Libraries for Xen tools
xen-libs.x86_64 : Libraries for Xen tools
xenpv-debuginfo.x86_64 : Debug information for package xenpv

这些都不像 xen 本身...
请帮忙。
提前致谢

答案1

RHEL5 服务器的默认 Red Hat Network 订阅不包括虚拟化通道。您必须手动为您的订阅启用它。请参阅这里。如果我没记错的话,没有额外的费用……但我已经有几个月没有使用过 RHEL 订阅了。

我认为这在 RHEL 6 中已经发生了变化。而且我知道,默认存储库包含其他虚拟化包但不包含 Xen,这很奇怪。

答案2

xen-3.0.3-105.el5_5.5.src.rpm 是源 RPM,因此 yum 无法安装它。Yum 只能安装二进制 RPM,因此搜索时不会显示它。

如果您确实想要构建源代码,请使用wgetyumdownloader --source ...(从yum-utils包中)下载它并使用rpmbuild它进行构建。

否则,请查找非源 RPM,yum 应该会为您获取。如果不是最新版本,请使用插件yum-allowdowngrade(也是 的一部分yum-utils)。

相关内容