Tinkering with this process again, it’s interesting to see that:
sudo apt install --reinstall unattended-upgrades
…doesn’t actually remove config files in /ect.
Also, mfw I realize that autoclean != autoremove: 🤦
edit (27-Oct): the below section of this post has been cleaned up by @brian-murray – thanks. Read on if you want, but just know (it’s my understanding) that the package (in versions 16.04+) will clean up the kernels by default if “things get too large” – that’s pretty much of the gist of it. You can stop reading here.
I found a “RemoveOldKernels” guide that is in need of better editing, especially in the “Automatic Maintenance” section: https://help.ubuntu.com/community/RemoveOldKernels – take a look at the latest 9/14 edit:
> Option for Ubuntu 16.04 and Later
> Unattended-upgrades version 0.90 supports new configuration variable that makes it possible to automatically remove only packages that become excessive during unattended upgrade. It is enabled i.e. “true” by default, so make sure there is NO line
> Unattended-Upgrade::Remove-New-Unused-Dependencies "false"
> and NO line
> Unattended-Upgrade::Remove-Unused-Dependencies "true";
> in /etc/apt/apt.conf.d/50unattended-upgrades, if you want to remove only new unused dependencies automatically after unattended upgrades.
…um, yeah. Can anyone make sense of this? What exactly is the “new configuration variable” referenced? “Remove-New-Unused-Dependencies” isn’t listed in the config file by default so what is the editor trying to say?:
https://github.com/mvo5/unattended-upgrades/blob/master/data/50unattended-upgrades.Ubuntu