Last active
April 26, 2019 11:57
-
-
Save gargolito/e3caba0fdaa514eb5a771723c7e826e5 to your computer and use it in GitHub Desktop.
#linux fully hands-off apt-get install/upgrade
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
| function apt-do () { | |
| # disable any interactive dialogs and install new configs. | |
| DEBIAN_FRONTEND=noninteractive apt-get -q -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew $@ | |
| } | |
| apt-do install "package name" | |
| or | |
| apt-do upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment