Grub cleaner

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'$
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio;$
insmod part_msdos
insmod ext2

Old Kernels

Forum tags: 

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

Delete old Linux Kernels

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.


Subscribe to RSS - Kernel