Last active
March 20, 2017 08:48
-
-
Save epcim/3dfebe6b2786e796299d98fc8fc100ab to your computer and use it in GitHub Desktop.
apt, dist-upgrade noninteractive default values
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
# 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