How to clean /boot on Ubuntu?

Check your Kernel Version so you do not delete it

uname -r

List all installed Kernels

sudo dpkg --list 'linux-image*'

Delete the kernels you don’t want

sudo apt-get remove linux-image-VERSION

{Command notes: Replace VERSION with the version of the kernel you want to remove}

Auto remove packages you do not need

sudo apt-get autoremove

A personal technical diary… To the point… Precise

Previous

How to merge / split – odd & even pages of PDF’s using Ubuntu?

Next

How to convert Multiple Audios to Videos using simple Python script?

3 Comments

  1. sudo apt install -y byobu
    sudo purge-old-kernels -y –keep 1
    sudo apt-get -y autoremove –purge

    # You may want to put the last 2 commands in crontab every night
    # Solution from: https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition

  2. sudo apt install -y byobu
    sudo purge-old-kernels -y –keep 1
    sudo apt-get -y autoremove –purge

    # You may want to put the last 2 commands in crontab every night
    # Solution from: https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition

  3. sudo apt install -y byobu
    sudo purge-old-kernels -y –keep 1
    sudo apt-get -y autoremove –purge

    # You may want to put the last 2 commands in crontab every night
    # Solution from: https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition

Leave a Reply

Home | Contact Us | Terms and Conditions | Theme By Anders Norén