Use scripts to easily install the latest Linux kernel in Ubuntu

Source: Internet
Author: User

Use scripts to easily install the latest Linux kernel in Ubuntu

Do you want to install the latest Linux kernel? A simple script can easily complete this task in the Ubuntu system.

Michael Murphy wrote a script to install the latest candidate version, standard version, or low-latency version of the kernel into Ubuntu. This script will download and install the latest Linux kernel package from the main page of the Ubuntu kernel after asking some questions.

 

Install and upgrade the Linux kernel through scripts:
  1. Click "Download Zip" in the upper-right corner of the github page to Download the script.

  2. Right-click the Zip file under the user's downloaded directory and choose expand here to decompress it.

  3. Right-click the decompressed folder and select Open in terminal to this folder.

In this case, a terminal is opened and automatically navigate to the target folder. If you cannot find the "open in terminal" option, search for installation in the Ubuntu Software Center.nautilus-open-terminalAnd then log on to the system again (or run it on the terminal again ).nautilus -q).
4. After Entering the terminal, run the following command to grant the script the permission to perform this operation.

  1. chmod+x *

Finally, you can run this script whenever you want to install or upgrade the Ubuntu linux kernel.

  1. ./*

Here, we use * to replace the script name because there is only one file in the folder.

If the script runs successfully, restart the computer.

 

Restore and uninstall the new kernel

If you want to recover and remove the new kernel for some reason, restart your computer and select the old kernel to start the system under the Grub advanced options menu.

After the system is started, continue with the execution in the following sections.

 

How to remove the old (or new) kernel:
  1. Install Synaptic Package Manager from the Ubuntu Software Center.

  2. Open Synaptic Package Manager and perform the following operations:

  • Click Reload to display the new kernel to be deleted.
  • Select Status> Installed in the left-side Navigation Pane to make the search list clearer.
  • In the Quick filter input box, enter linux-image-for query.
  • Select a kernel image linux-image-x.xx.xx-generic and mark it as removal (or Complete Removal)
  • Finally, application changes

Repeat the preceding operations until you remove all unnecessary kernels. Note: Do not remove the running kernel at the moment. You can useuname -rCommand to view the running kernel.

For the Ubuntu server, you can run the following command step by step:

  1. uname-r
  2. dpkg -l |grep linux-image-
  3. sudoapt-get autoremove KERNEL_IMAGE_NAME

Ubuntu 15.10 will use the Linux Kernel 4.2 Kernel

How to install Kernel 4.0.2 on CentOS 7

How to install Linux Kernel 4.0 on CentOS 7

How to install Linux kernel 4.0 on Ubuntu/CentOS?

How to install Linux kernel 13.10 On Ubuntu 3.12

How to install the 3.16.7 CKT2 kernel in Ubuntu 14.10, Ubuntu 14.04, and its derivative versions

Linux Kernel: click here
Linux Kernel: click here

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.