查看当前内核版本
uname -a
查看当前系统安装的内核版本
dpkg --get-selections|grep linux
[Result]
libselinux1:amd64 install
linux-firmware install
linux-generic install
linux-headers-3.13.0-46 install
linux-headers-3.13.0-46-generic install
linux-headers-generic install
linux-image-3.13.0-46-generic install
linux-image-extra-3.13.0-44-generic deinstall
linux-image-extra-3.13.0-46-generic install
linux-image-generic install
linux-libc-dev:amd64 install
linux-signed-generic install
linux-signed-image-3.13.0-44-generic deinstall
linux-signed-image-3.13.0-46-generic install
linux-signed-image-generic install
linux-sound-base install
pptp-linux install
syslinux install
syslinux-common install
syslinux-legacy install
util-linux install
其中linux-headers、linux-image、linux-signed开头的都是跟内核相关的.带有版本号的(如linux-image-extra-3.13.0-44-generic)才是可以删除的.注意不要删除当前使用的版本.后面的install表示已安装,deinstall表示曾经安装过,现在已被删除(已不占空间).
删除旧内核
sudo apt-get purge '旧内核'
更新启动菜单
sudo update-grub
评论