#!/bin/bash

# The -o DPkg::Pre-Invoke="" and -o DPkg::Post-Invoke="" options
# temporarily disable all DPkg hooks (including apt-listchanges)

export DEBIAN_FRONTEND=noninteractive
export LANG=C
export LC_ALL=C

apt-get dist-upgrade -y --autoremove \
  -o Dpkg::Options::=--force-confdef \
  -o Dpkg::Options::=--force-confold \
  -o DPkg::Pre-Invoke="" \
  -o DPkg::Post-Invoke=""
