PDA

View Full Version : [ubuntu] fully unattended updates



gelowe
August 19th, 2008, 03:46 AM
After various apt-get update/install/upgrade you will get prompted for various data or notified of changes and it then requires the user acknowledgment before continuing. Is there any way to completely suppress this? i have tried the -q -y but that does not stop these types of prompts.

SkonesMickLoud
August 19th, 2008, 06:51 AM
Try -f.

gelowe
August 19th, 2008, 02:28 PM
I figured this out after some research. The prompts that appear after a package has been installed/updated/upgraded have to do with dpkg. In the dpkg docs there is reference how to control the dpkg tool. If I run apt-get lines with DEBIAN_FRONTEND=noninteractive pre-pended then no prompts will be given. I am also attaching a document that describes some of the other options. Also I still need to put in the –q –y flags as those are for apt and not dpgk. So for example a dist update would be



DEBIAN_FRONTEND=noninteractive apt-get -q -y dist-upgrade


http://www.fifi.org/cgi-bin/man2html/usr/share/man/man8/debconf.8.gz

Hopefully this is helpful to others