I have built a custom kernel which I want to install. I am afraid that the next upgrade will overwrite my custom kernel. Do I have to put the current kernel on hold or is this not necessary? I cannot find a hint in the many description of how to build a custom kernel.

The current kernel is:

# uname -r

The custom kernel debs are:

  • 1
    If it and its initrd have different filenames in /boot and if its modules are under a different directory in /lib/modules than any of the other installed kernels, then you will be fine.
    – Celada
    Commented Jan 22, 2017 at 20:22
  • I have updated the question. Is this enough to say which case it is?
    – musbach
    Commented Jan 22, 2017 at 20:30
  • Kernel cant be upgraded.Kernel should be installed.Because You have a different sub version of kernel.
    – supriady
    Commented Jan 23, 2017 at 2:54

1 Answer 1


Package manager will not overwrite your kernel. Actually, package manager never overwrite any kernel, it just add new version parallel to existing versions on system.
Depending on distribution, package manager may initiate reconfiguration of boot loader on your system upon installing new or removing existing kernel, but that's really distribution specific. (Ubuntu does exactly that) In that case, after installing new version of kernel, it will be default on startup, so you will have to manually change boot loader config so your custom version would be default choice.

  • Ok I ubnderstand the following: I have my “normal” kernels and I install my custom kernel. When I put the “normal” kernel on hold no upgrade will change the “normal” kernel and I’ll always work with my custom kernel.
    – musbach
    Commented Jan 23, 2017 at 12:44
  • yes, as short answer. But keep mind on the fact that new kernel version often fix security issues. So it would be wise to save your custom kernel config file and use it for new kernel compilation occasionally with source code of new kernel version.
    – Boban P.
    Commented Jan 23, 2017 at 14:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .