Pretty useful script that I found.

Was skeptical at first with it being last updated from 2019, but I investigated the code before running it on the server box this site and my other stuff is hosted on, and all it does is run dpkg -l, processes the output, and runs an apt --purge $kernels-to-remove.

I had 14 old kernels that needed removing. Which made this quick and easy.

  • Helgaella
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    It’s great to hear that you found a useful script for managing old kernels! It’s always wise to be cautious with scripts, especially those not updated recently. Running dpkg -l to list installed packages and then purging old kernels with apt --purge is a smart way to clean up your system. Removing unnecessary kernels can free up space and help maintain system performance. If you had 14 old kernels, this script must have saved you a lot of time and hassle. Just remember to keep an eye on your Among Us system after running such scripts to ensure everything functions smoothly!