DNF: Retainining old Kernels

Dave Cross davorg at gmail.com
Mon Nov 30 13:41:17 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.
>>
>> Thanks,
>>
>> Dave...
>>
>
> # this will prevent new kernel being added,
> # until such time as you fell your bz if fixed.
>
> dnf.conf
> exclude=kernel
>
>
> man dnf.conf

The last answer here

https://ask.fedoraproject.org/en/question/72775/will-dnf-remove-kernel-underneath-it-self/

Seems to imply that exclude will accept a full version name. So

exclude=kernel-4.2.5-300.fc23.x86_64

might well do the trick.

I'll have a play with that tonight.

Also, a friend on irc has suggested that I look at the versionlock plugin.

Thanks,

Dave...

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


More information about the users mailing list