Last active
June 21, 2022 06:28
-
-
Save eusonlito/2cbc37241ef8dcd40c1a601d04f91cd9 to your computer and use it in GitHub Desktop.
Execute automated apt dist-upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save on /usr/local/bin/apt-dist-upgrade with 700 permissions to root | |
# Execute: sudo apt-dist-upgrade | |
export DEBIAN_FRONTEND=noninteractive | |
export NEEDRESTART_MODE=a | |
export DEBIAN_PRIORITY=critical | |
apt clean | |
apt autoclean | |
apt update && apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --assume-yes dist-upgrade | |
apt autoremove --assume-yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment