-
-
Save adamesss/d8ead6450e7a16e89b47c79c0564f6cc to your computer and use it in GitHub Desktop.
Non-interactive apt-get update & dist-upgrade - Ubuntu
This file contains hidden or 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
#!/bin/bash | |
# update & dist-upgrade | |
unset UCF_FORCE_CONFFOLD | |
export UCF_FORCE_CONFFNEW=YES | |
ucf --purge /boot/grub/menu.lst | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -o Dpkg::Options::="--force-confnew" --force-yes -fuy dist-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment