In this article we will be using the ubuntu-mainline-kernel.sh Bash script utility for Ubuntu and use it to easily install or uninstall kernels from the Ubuntu Kernel PPA.

In this tutorial you will learn:
  • How to install kernel upgrade script utility
  • How to to upgrade kernel to latest version
  • How to uninstall previously installed PPA kernels
Upgrade kernel to latest version on Ubuntu 20.04 Focal Fossa Linux
Upgrade kernel to latest version on Ubuntu 20.04 Focal Fossa Linux

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software ubuntu-mainline-kernel.sh
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

Upgrade kernel to latest version on Ubuntu 20.04 step by step instructions

  1. First step is to download the ubuntu-mainline-kernel.sh Bash script utility. Open up your terminal and enter:
    $ wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
    
  2. Next, step is to install the previously downloaded script into our executable path:
    $ sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
    
  3. All is ready to upgrade the Ubuntu kernel to the latest version. To do so run do following command:
    $ ubuntu-mainline-kernel.sh -i
    Finding latest version available on kernel.ubuntu.com
    Latest version is: v5.4.3, continue? (y/N) 
    
    The above command will search for the latest kernel version available. To continue with the kernel installation answer y.

  4. SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


  5. Reboot your Ubuntu system and check for the loaded Kernel version:
    $ uname -rs
    
    Latest Kernel version upgrade
    Latest Kernel version upgrade
  6. To uninstall the PPA kernel version execute the following command and follow to wizard:
    $ ubuntu-mainline-kernel.sh -u
    
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions