安装后须要从新启动以应用新安装的内核。
- $ sudo reboot now
如今,你正在应用的就是最新版本 4.11.3-041103-generic 的内核。
- $ uname -a
- Linux magi-VirtualBox 4.11.3-041103-generic #201705251233 SMP Thu May 25 16:34:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
它可以删除或清除所有非晃荡的内核,并且不会为了安然目标留下备份的内核。强烈建议在履行此脚本之前从新启动一次。
- compile_linux_kernel.sh :用户可以大年夜 kernel.org 编译和安装所需的或最新的内核
- update_ubuntu_kernel.sh :用户可以大年夜 kernel.ubuntu.com 安装并更新所需或最新的预编译 Ubuntu 内核
- remove_old_kernels.sh :这将删除或清除所有非晃荡内核,并且只保存当前加载的版本
只须要运行 remove_old_kernels.sh shell 脚本即可删除或清除所有非晃荡状况的内核。
- $ ./remove_old_kernels.sh
- ++++++++++++++++++++++++++++++++
- +++ W A R N I N G +++
- ++++++++++++++++++++++++++++++++
- A reboot is recommended before running this script to ensure the current kernel tagged
- as the boot kernel is indeed registered and old kernels properly marked for removal.
- If you have just installed or modified your existing kernel and do not reboot before
- running this script it may render you system INOPERABLE and that would indeed suck.
- You have been warned.
- ~the Mgmt
- [?]Continue to automagically remove ALL old kernels? (y/N)y
- \_ Removing ALL old kernels . . .
- [sudo] password for magi:
推荐阅读
8月1日,德州市举办“互联网+政务办事”消息宣布会,介绍推动“互联网+政务办事”情况。德州市以用户为中间进行需求侧改革,市平易近和企业可经由过程互联网登录政务>>>详细阅读
本文标题:LKU:一套在Ubuntu/LinuxMint上编译、安装和更新最新内核的Shell脚本
地址:http://www.17bianji.com/lsqh/36508.html
1/2 1