Just in case folks want to use it in MX I thought I'd provide the config files as working out the syntax can be a bit of a pain.
Obviously you need to install u-a either from Synaptic or command
Code: Select all
sudo apt-get install unattended-upgrades
You can derive the information by running apt-cache policy to a text file
Code: Select all
apt-cache policy > repos.txt
Code: Select all
egrep '^(Origin|Label|Suite|Codename)' /var/lib/apt/lists/*Release > repos-1.txt
To view the logs in /var/log/unattended-upgrades you need to be root/sudo - or add your account to adm group so you can view as a user.
You can test the script by running
Code: Select all
sudo unattended-upgrades --dry-run --verbose
It will run automatically next day around up to 30 minutes after booting. I did track down a location for the value of that time - can't find it right now.
Be aware that unattended-upgrades will install any additional packages that are needed in order to make upgrades work - as opposed to apt-get upgrade which does not. If you do not want an item upgraded then you can mark it held.
Code: Select all
echo "package name hold" | sudo dpkg --set-selections
EDIT:- It seems MX also requires the use of oldstable in unattended-upgrades so I've added the modified 50unattended-upgrades file - my previous distro didn't use this - hence the omission.