Skip to content

Instantly share code, notes, and snippets.

@JonasGroeger
Last active August 30, 2016 11:55
Show Gist options
  • Select an option

  • Save JonasGroeger/f1ba4c699bf6bcbcee87c40f6ff6108c to your computer and use it in GitHub Desktop.

Select an option

Save JonasGroeger/f1ba4c699bf6bcbcee87c40f6ff6108c to your computer and use it in GitHub Desktop.
quiet apt-get funtions with inspiration from here: https://peteris.rocks/blog/quiet-and-unattended-installation-with-apt-get/
quiet_update() {
DEBIAN_FRONTEND=noninteractive apt-get update -qq < /dev/null > /dev/null
}
quiet_install() {
DEBIAN_FRONTEND=noninteractive apt-get install -qq "$@" < /dev/null > /dev/null
}
quiet_install_no_recommends() {
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq "$@" < /dev/null > /dev/null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment