DNF: Retainining old Kernels

Dave Cross davorg at gmail.com
Mon Nov 30 13:25:25 UTC 2015


On 30 November 2015 at 09:26, Frank Murphy <frankly3d at gmail.com> wrote:
> On Mon, 30 Nov 2015 09:18:03 +0000
> Dave Cross <davorg at gmail.com> wrote:
>
>> Can I configure dnf so that it won't remove the working kernel RPM and
>> new updates will replace the second oldest one? I'd obviously still
>> like to install new RPMs so that I can test them to find when my
>> problem is fixed.
>
> # this will prevent new kernel being added,
> # until such time as you fell your bz if fixed.
>
> dnf.conf
> exclude=kernel
>
>
> man dnf.conf

Thanks for the suggestion. I was really looking for a solution where
the most recent two kernels could carry on updating as often as they
like, but the oldest one is somehow pinned to my system as a safety
net.

Currently I'm thinking I can manually remove the middle version. Then
when a new kernel is released, it won't hit my installed versions
limit and therefore won't delete the oldest one.

Rinse and repeat...

Cheers,

Dave...


-- 
Dave Cross :: dave at dave.org.uk
http://dave.org.uk/
@davorg


More information about the users mailing list