首页 > 代码库 > Ubuntu 更新内核操作

Ubuntu 更新内核操作

一、只要使用apt-get update && apt-get upgrade就好

当然上面那个命令不会改变你Ubuntu的版本,如果你还要升级Ubuntu的版本(比如从13.10升级到14.04),那你要敲:sudo dist-upgrade


更新列表

apt-get update 

更新软件包

apt-get upgrade


查看软件源内核信息

apt-cache search linux-image-xxxx


查看某一版本内核有哪些包

root@10-15-126-114:~# apt-cache search  3.16.0-77-generic

linux-cloud-tools-3.13.0-95-generic - Linux kernel version specific cloud tools for version 3.13.0-95

linux-headers-3.13.0-95-generic - Linux kernel headers for version 3.13.0 on 64 bit x86 SMP

linux-image-3.13.0-95-generic - Linux kernel image for version 3.13.0 on 64 bit x86 SMP

linux-image-extra-3.13.0-95-generic - Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP

linux-signed-image-3.13.0-95-generic - Signed kernel image generic

linux-tools-3.13.0-95-generic - Linux kernel version specific tools for version 3.13.0-95



安装相应内核

apt-get install linux-headers-3.13.0-95-generic linux-image-3.13.0-95-generic linux-image-extra-3.13.0-95-generic linux-tools-3.13.0-95-generic



查看当前安装了哪些内核版本

dpkg --list | grep linux-image



查看该内核版本有哪些包

dpkg --list | grep 3.2.0-96.136




删除多余内核包

apt-get remove linux-image-3.13.0-63-generic

apt-get remove linux-image-extra-3.13.0-63-generic

apt-get remove linux-headers-3.13.0-63-generic


清理无用的包

apt-get clean && sudo apt-get autoclean 


Ubuntu 更新内核操作