[OpenAFS] Re: RPM packaging suggestion

Paul Johnson pauljohn32@gmail.com
Wed, 2 May 2007 16:38:17 -0500

On 4/25/07, Axel Thimm <Axel.Thimm@atrpms.net> wrote:
> On Sat, Apr 21, 2007 at 06:56:32PM -0500, Paul Johnson wrote:
> > I've noticed that when the yum update runs, it replaces the
> > openafs-kernel module, rather than just installing the new one.
> > That's bad if I end up not keeping the new kernel. Other kernel module
> > RPMS leave the old versions.
> >
> > I asked in the RPM list and the fix for that, at least on Fedora Core
> > versions of linux, is to add this line
> >
> > Provides: kernel-modules = %{kernvers}
> >
> > In this way, yum/rpm knows to leave the module until the kernel itself
> > is removed.
> That's not yet enough, it was shown last year, that any scheme not
> having the uname -r in the name of the package (the rpm name as in
> contrast to the rpm version/release) can only support the very latest
> kernel.
> But ATrpms has kmdls (w/ the uname -r in name) and a yum plugin that
> simply work. Check that out, if you like.
> --
> Axel.Thimm at ATrpms.net

I'm sorry to say that you are not correct.  Or, at least, I don't
think so.  Perhaps yum is better than it was, or the openafs spec file
is different than you recall.

The only change in openafs.spec that I made was inserting this:

rovides:         kernel-modules = %{kernvers}

I rebuilt the openafs-kernel packages for 2 kernels and uploaded them
to my yum server, and when I update my machine, it did an install, not
an upgrade, of openafs-kernel when I ran "yum update".  Observe

# rpm -q openafs-kernel


My RPMs are named:


Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas