Last active
July 23, 2020 08:36
-
-
Save MacroMan/5077db50d46447e0eae6d50ccc22f4bb to your computer and use it in GitHub Desktop.
100% non-interactive `apt-get dist-upgrade`
This file contains 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
sudo apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none \ | |
apt-get \ | |
-o Dpkg::Options::=--force-confold \ | |
-o Dpkg::Options::=--force-confdef \ | |
-y --allow-downgrades \ | |
dist-upgrade --fix-missing && \ | |
sudo DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none \ | |
apt-get \ | |
-o Dpkg::Options::=--force-confold \ | |
-o Dpkg::Options::=--force-confdef \ | |
-y --allow-downgrades \ | |
autoremove && \ | |
sudo update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment