Re: yum protect

James Antill <[email protected]> Mon, 14 Oct 2013 11:39:45 -0400
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Frank Murphy <[email protected]> writes:

> Is it possible to protect a specific kernel-release
> with 
> echo kernel-nnn > /etc/yum/protected.d/kernel.conf 
> Have tried but it still removes stated releases.
>
> You have known working kernel-nnn,
> but you still want to update kernels
> versionlock would prevent the updates.
>
> yum-3.4.3-106.fc20.noarch

 protected.d works on package names, not versions.

 What it sounds like you want is to just stop the removal of a known
working version of the kernel. At which point (from man yum.conf):

              installonly_limit  Number  of packages listed in installonlypkgs
              to keep installed at the same time. Setting to 0  disables  this
              feature. Default is '0'. Note that this functionality used to be
              in the "installonlyn" plugin, where this option was altered via.
              tokeep.   Note  that  as of version 3.2.24, yum will now look in
              the yumdb for a installonly attribute on installed packages.  If
              that attribute is "keep", then they will never be removed.

...so "yumdb set installonly keep kernel-nnn" does what you want.

-- 
James Antill -- [email protected]