[Yum-devel] how to require a kernel module
James Antill
james at fedoraproject.org
Thu Mar 11 16:03:13 UTC 2010
On Thu, 2010-03-11 at 12:56 +0100, Farkas Levente wrote:
> - even if i only have installed kernel-PAE (ie. not the normal kernel)
> yum still install the kmod-foo (and not only kmod-foo-PAE) and because
> of this it will pull also the normal kernel too.
The command "yum install kmod-foo" matches a single package, which can
be installed. It's highly unlikely we'd ever make that actually install
something other than kmod-foo.
The command "yum install foo-kmod" should be a virtual provide, which
is provided by both kmod-foo and kmod-foo-PAE. However, even in this
case, there isn't any information that yum will use to determine that
"kmod-foo-PAE" is better. I think, if you used --skip-broken and added a
local conflict with kmod-foo, you could get yum to do the right thing
(but I doubt setting that up is easier than just telling the user to
install the correct package).
In theory yum will eventually take into account that of the providers
for foo-kmod one requires less other things to be installed ... however
this is almost certainly not going to happen in RHEL-5 (even if the code
gets written).
--
James Antill - james at fedoraproject.org
http://yum.baseurl.org/wiki/releases
http://yum.baseurl.org/wiki/whatsnew/3.2.27
http://yum.baseurl.org/wiki/YumMultipleMachineCaching
More information about the Yum-devel
mailing list