Skip to content

Instantly share code, notes, and snippets.

@MacroMan
Last active July 23, 2020 08:36
Show Gist options
  • Save MacroMan/5077db50d46447e0eae6d50ccc22f4bb to your computer and use it in GitHub Desktop.
Save MacroMan/5077db50d46447e0eae6d50ccc22f4bb to your computer and use it in GitHub Desktop.
100% non-interactive `apt-get dist-upgrade`
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