Regarding configuration of Unattended-Upgrades:
Which are the appropriate files for configuring each option of Unattended-Upgrades?
I have seen three files mentioned, see below. I am not certain others could also be used.Can any of the files above be used for any of the options, or there is a restriction on this? (There is some overlap, for sure, see below).
Which has precedence for repeated options?
PS: These are actually different questions, but intimately related, so it would be possibly less convenient to separate them into different posts.
What I see in my 18.04LTS:
$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
$ cat /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
$ cat /etc/apt/apt.conf.d/50unattended-upgrades
(long output)
PS2: As for how to configure or disable, these are related
Limiting the time Unattended-Upgrade keeps the lock on `/var/lib/dpkg/`
Ubuntu 16.04: Unattended-upgrades runs at random times
Unattended-upgrades running for hours
Disable automatic updates ubuntu 18.04
disable updates from command line in Ubuntu 16.04
Disable Software Updater Notification?
How to Enable/Disable Unattended Upgrades in Ubuntu 16.04
Terminate and disable/remove unattended upgrade before command returns
/etc/apt/apt.conf.d
could contain any configuration option for unattended-upgrade, and they would be equally processed. The decision on where to place them helps organization, and accounting for the precedence.