Do you want to install the latest Linux kernel? A simple script can easily complete this task in the Ubuntu system. MichaelMurphy 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: click this github
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:
Click "Download Zip" in the upper-right corner of the github page to Download the script.
Right-click the Zip file under the user's downloaded directory and choose expand here to decompress it.
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-terminal
And 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.
chmod+x *
Finally, you can run this script whenever you want to install or upgrade the Ubuntu linux kernel.
./*
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 version for some reason, restart your computer.Advanced optionsSelect the old kernel version to start the system.
After the system is started, continue with the execution in the following sections.
How to remove the old (or new) kernel:
Install Synaptic Package Manager from the Ubuntu Software Center.
Open Synaptic Package Manager and perform the following operations:
- ClickReloadButton to display the new kernel to be deleted.
- SelectStatus-> InstalledTo make the search list clearer.
- In the Quick filter input box, enterLinux-image-Used 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 -r
Command to view the running kernel.
For the Ubuntu server, you can run the following command step by step:
uname-r
dpkg -l |grep linux-image-
sudoapt-get autoremove KERNEL_IMAGE_NAME
Ubuntu 15.10 will use the Linux Kernel 4.2 Kernel http://www.linuxidc.com/Linux/2015-09/122826.htm
How to install the Kernel 4.0.2 http://www.linuxidc.com/Linux/2015-05/117574.htm on CentOS 7
How to install Linux Kernel 4.0 http://www.linuxidc.com/Linux/2015-04/116461.htm on CentOS 7
How to install Linux kernel 4.0 http://www.linuxidc.com/Linux/2015-04/116565.htm on Ubuntu/CentOS
How to install Linux kernel 13.10 http://www.linuxidc.com/Linux/2013-11/92930.htm on Ubuntu 3.12
How to install the 3.16.7 CKT2 kernel http://www.linuxidc.com/Linux/2014-12/110189.htm in Ubuntu 14.10, Ubuntu 14.04 and its derivative versions
Linux Kernel: Click here
Linux Kernel: Click here
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
Via: http://ubuntuhandbook.org/index.php/2015/08/install-latest-kernel-script/
Author: Ji m Translator: mr-ping Proofreader: wxy
This article was originally compiled by LCTT and launched with the honor of Linux in China
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-09/123073.htm