purge-old-kernels deprecated

Ralf Mardorf kde.lists at yahoo.com
Thu Jan 5 18:54:21 UTC 2023


On Fri, 2023-01-06 at 02:09 +0800, Bret Busby wrote:
> apt update
> apt full upgrade -y
> apt autoremove
> apt autoclean

My update script runs

            sudo apt update $quiet$color && \
            sudo apt-file update && \
            sudo auto-apt updatedb && \
            sudo auto-apt update-local && \
            sudo apt full-upgrade $keepp$color && \
            sudo apt autoremove $color;;
        esac
        printf "\nsudo mv -i /var/cache/apt/archives/* /root/tmp_trash/\n"
        sudo mv -i /var/cache/apt/archives/* /root/tmp_trash/

that is more or less the same as you run, with one big exception. The
content of the variables $keepp, $color is unimportant, since the
content is at least not "-y".

As good as always I don't use "assume yes" flags and as good as always I
use "interactive {re,}move" flags. This isn't absolutely safe, I might
write a wrapper that asks for double interaction, if the task is a
recursive remove and even this is unlikely absolutely safe.

Running commands with "assume yes" or without "interactive" options is
absolutely irresponsible. Some commands are like firearms, gun safety 
should become a habit.

For me, the reason against the freedom to own a gun is the conflict with
the freedom to be an idiot. I do not fear misuse of legal guns, I fear
idiots who have no intention of misusing legal guns but cause accidents.

I'm against the freedom to own a gun and against "assume yes" flags.




More information about the ubuntu-users mailing list