Skip to content

Instantly share code, notes, and snippets.

@amcchord
Last active March 22, 2024 17:23
Show Gist options
  • Save amcchord/be95b478629c6dc81751e00b03b0237f to your computer and use it in GitHub Desktop.
Save amcchord/be95b478629c6dc81751e00b03b0237f to your computer and use it in GitHub Desktop.
Handy tips

Some stuff I had to do a lot of googling and messing around to find out


Want to apt-get upgrade without any promopts. Do you have a script that calls apt upgrade

Supress all prompts in apt-get

NEEDRESTART_MODE=a DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment