Kernel

Grub cleaner

Forums: 
Forum tags: 

Hi to everybody! :)

I started tu use Bleachbit on my Debian Wheezy, after it I updated system to Jessie and now I'm on stretch.

I used always grub boot manager but I have in grub.cfg all my past kernel menu' entry like what you can read below:

menuentry 'Debian GNU/Linux, con Linux 3.16.0-4-686-pae'$
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio;$
insmod part_msdos
insmod ext2

Old Kernels

Forums: 
Forum tags: 

I noticed that Bleachbit doesn't remove old Linux Kernels.

Delete old Linux Kernels

Forums: 
Forum tags: 

It would be nice if BleachBit could remove old Kernels which are not automatically removed with

sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean

that cleans additionally several 100MB in the most cases.

Old Kernels can automatically removed with:
sudo dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

Perhaps its possible to add this to BleachBit.

Thanks!

Subscribe to RSS - Kernel