forcing older kernel package install (rpm --oldpackage for yum?) redux

"Brian J. Murrell" <[email protected]> Tue, 09 Apr 2013 17:29:41 -0400
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
A while ago in:

http://lists.baseurl.org/pipermail/yum/2012-June/023859.html

I asked about Yum's refusal to install an older kernel package:

Transaction Check Error:
  package kernel-2.6.32-358.2.1.el6.x86_64 (which is newer than kernel-2.6.32-279.14.1.el6_foo.x86_64) is already installed

The reason kernel-2.6.32-279.14.1.el6_foo.x86_64 is
even being considered for installation is because a given kernel
modules package requires it with:

kernel = 2.6.32-279.14.1.el6_foo

But clearly this confuses Yum since it doesn't want to install
the older kernel package.  I was told back then in:

   This message is from rpm. Which means that yum/rpm is treating the
  "kernel" package as a normal package and not as an "installonly"
  package. Something seems badly configured.

And indeed, if I try to just use RPM to install this kernel, I
get the same error:

# rpm -ivh kernel-2.6.32-279.14.1.el6_foo.x86_64.rpm 
Preparing...                ########################################### [100%]
	package kernel-2.6.32-358.2.1.el6.x86_64 (which is newer than kernel-2.6.32-279.14.1.el6_foo.x86_64) is already installed

But!  RPM has an option, "--oldpackage" that allows to me tell it
that installing an older package is OK.  Yum doesn't seem to have
any equivalent that I can see.

Or does it?

Cheers,
b.

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
signature.asc (application/pgp-signature, 263 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFkiEUACgkQl3EQlGLyuXDgqQCfS3jk22BoipKim4TpVxo3RlGx
8LEAoMAaeD14zcK2tW9jO/u133OxoJjA
=pZho
-----END PGP SIGNATURE-----