不用的内核已经被卸载掉了,如何从列表中删除呢?
代码:
gleerat@gleerat:~$ sudo apt-get autoclean
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
gleerat@gleerat:~$ dpkg --get-selections | grep linux
libselinux1 install
linux-firmware install
linux-generic install
linux-headers-2.6.38-11 install
linux-headers-2.6.38-11-generic install
linux-headers-generic install
linux-image-2.6.35-22-generic deinstall
linux-image-2.6.35-23-generic deinstall
linux-image-2.6.35-24-generic deinstall
linux-image-2.6.35-25-generic deinstall
linux-image-2.6.35-27-generic deinstall
linux-image-2.6.35-28-generic deinstall
linux-image-2.6.38-10-generic deinstall
linux-image-2.6.38-11-generic install
linux-image-2.6.38-8-generic deinstall
linux-image-2.6.38-9-generic deinstall
linux-image-generic install
linux-libc-dev install
linux-sound-base install
pptp-linux install
syslinux install
syslinux-common install
util-linux install
gleerat@gleerat:~$ sudo aptitude purge ~c
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
gleerat@gleerat:~$ dpkg --get-selections | grep linux
libselinux1 install
linux-firmware install
linux-generic install
linux-headers-2.6.38-11 install
linux-headers-2.6.38-11-generic install
linux-headers-generic install
linux-image-2.6.35-22-generic deinstall
linux-image-2.6.35-23-generic deinstall
linux-image-2.6.35-24-generic deinstall
linux-image-2.6.35-25-generic deinstall
linux-image-2.6.35-27-generic deinstall
linux-image-2.6.35-28-generic deinstall
linux-image-2.6.38-10-generic deinstall
linux-image-2.6.38-11-generic install
linux-image-2.6.38-8-generic deinstall
linux-image-2.6.38-9-generic deinstall
linux-image-generic install
linux-libc-dev install
linux-sound-base install
pptp-linux install
syslinux install
syslinux-common install
util-linux install
gleerat@gleerat:~$ sudo aptitude purge ~c
trackback: http://www.linuxsir.org/bbs/thread378499.html