[Yum] yum protect
James Antill
james-yum at and.org
Mon Oct 14 15:39:45 UTC 2013
Frank Murphy <frankly3d at gmail.com> 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 -- james at and.org
More information about the Yum
mailing list