Skip to content

Instantly share code, notes, and snippets.

@epcim
Last active March 20, 2017 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/3dfebe6b2786e796299d98fc8fc100ab to your computer and use it in GitHub Desktop.
Save epcim/3dfebe6b2786e796299d98fc8fc100ab to your computer and use it in GitHub Desktop.
apt, dist-upgrade noninteractive default values
# ubuntu noninteractive with default values
# http://superuser.com/questions/164553/automatically-answer-yes-when-using-apt-get-install
DEBIAN_FRONTEND=noninteractive dpkg --configure -a --force-confdef --force-confold
apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
# to install maintaner version use:
-o Dpkg::Options::="--force-confnew"
# on trusty
-force-yes
# on xenial use with
--allow-downgrades --allow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment