0

What is the difference between updating just the kernel (downloading and compiling) and sudo apt dist-upgrade?

I've read this, but I mean what if I just install the new kernel? (Download kernel 5 from here and install it on my Xubuntu 16.04). Will programs and GUI work as well? Or I need to wait for the 19.10 update?

Eliah Kagan
  • 117,780

2 Answers2

2

Upgrading the system is not upgrading a kernel. In most cases you don't compile kernels for Ubuntu because Ubuntu kernels and mainline kernels are available as binaries. You need to compile a kernel only if you want to change something in the sources.

Mainline kernels can be installed using UKUU. Ubuntu kernels for LTS releases are provided by HWE mechanism.

Generally it is not recommended to install another major kernel version without a specific reason.

sudo apt dist-upgrade doesn't upgrade Ubuntu release. It upgrades all packages including kernel to the latest version for the current release.

Kernel 5.x are available in Ubuntu releases for 18.04 and others.

If you install a mainline 5.x kernel to Xubuntu 16.04 all may work well, or not. that is not guaranteed. The latest major kernel release supported for 16.04 is 4.15.

Pilot6
  • 90,100
  • 91
  • 213
  • 324
  • So, installing a new kernel is different from packages, meaning I can have my current Xubuntu with a new kernel, am I right? – Mohammad Kholghi Sep 09 '19 at 11:11
  • 2
    That's correct. But a new kernel may not be quite compatible with your old system. And you need to know that Ubuntu kernels are not quite same as mainline ones. – Pilot6 Sep 09 '19 at 11:12
0

You usually encounter no problems changing Linux kernels whenever you like, either newer or slightly older:

If you want a new GUI though you have to upgrade Ubuntu.