Unattended software updates on Devuan
updated 2019-06-02
Devuan, as a fork of debian that uses sysvinit (or another-- your choice), still uses debian-based utilities. I come from the Fedora/Red Hat/CentOS rpm- based family of distributions, and I struggle with the dpkg-based package management on occasion. I really dislike how the software upgrades will sometimes pause in the middle, to display the changelog. If I wanted a changelog, I'd go read it! When I issue a command to update packages, I want to walk away, and come back, and it be done, not get stuck at 20% because openssh changed some defaults and wants to tell me. It emails me anyway! I find the defaults of apt-get to be not sane. Here is how to configure apt-get to run without pausing to display duplicate information or ask you questions.
export DEBIAN_FRONTEND=noninteractive
apt-get -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
Comments