Changing a kernel is a potentially significant change and should only be done if you really need to. As always, make backups before you make any serious change to your server.
Then, the typical procedure for updating your kernel is as follows:
For Ubuntu or Debian, i use:
apt-get update apt-get dist-upgrade
For Fedora and Centos: (see /etc/yum.conf to make sure there is no ‘exclude=kernel*’ line in the [main] section)
For ArchLinux : (see /etc/pacman.conf and comment out any line that says “IgnorePkg=linux”)
Look in /lib/modules for the highest version of installed kernel library available.
In the control panel, in a droplet’s settings, look for a kernel that matches your OS version, kernel library version, and architecture (x32 or x64). Select that kernel and submit. If the kernel doesn’t exist there, stop and let us know your OS and version, your architecture, and what you saw in /lib/modules in a support ticket.
Once the kernel is set, reboot and test.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!