Hey Michael!

Thanks for your response.

You might also wanna monitor the outcome of Bug#160743.  Apparently,
the APT team is considering making 'clean' the default action upon a
succesfull install/upgrade/dist-upgrade.

Cheers!
Martin-Éric

2016-01-01 18:46 GMT+02:00 Michael Vogt <[email protected]>:
> On Thu, Dec 31, 2015 at 12:26:29AM +0200, Martin-Éric Racine wrote:
>> Package: unattended-upgrades
>> Version: 0.86.4
>> Severity: wishlist
>
> Thanks for your bugreport.
>
> I like this idea, I implemented it in:
> https://github.com/mvo5/unattended-upgrades/commit/c0a9a1c429b2999bd23857149f01bae3995c840a
>
> The default behavior is now to remove the downloaded .deb files after
> successful installs. This the best default, the operation was
> successful so why keep the files around. I added a option to override
> this too just in case someone disagrees :) If so I would be curious to
> know the use-cases to keep the downloaded debs around. I wonder if
> this should not also be the default for apt itself.
>
> Cheers,
>  Michael
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Currently, the global key APT::Periodic::AutocleanInterval allows performing 
>> 'apt-get autoclean' after N days. This is insufficient on systems that have 
>> limitted storage space, since autoclean only clears downloaded packages that 
>> no longer appear in the archive. What is needed is for 'apt-get clean' to be 
>> performed, to remove all downloaded packages from the cache, but only after 
>> a succesful unattended upgrade.
>>
>> - -- System Information:
>> Debian Release: stretch/sid
>>   APT prefers testing
>>   APT policy: (1001, 'testing'), (1001, 'stable'), (1001, 'oldstable')
>> Architecture: i386 (i586)
>>
>> Kernel: Linux 3.16.0-4-586
>> Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/dash
>> Init: systemd (via /run/systemd/system)
>>
>> Versions of packages unattended-upgrades depends on:
>> ii  apt                    1.1.5
>> ii  apt-utils              1.1.5
>> ii  debconf [debconf-2.0]  1.5.58
>> ii  init-system-helpers    1.24
>> ii  lsb-base               9.20150917
>> ii  lsb-release            9.20150917
>> ii  python3                3.4.3-7
>> ii  python3-apt            1.1.0~beta1
>> ii  ucf                    3.0031
>> ii  xz-utils               5.1.1alpha+20120614-2.1
>>
>> Versions of packages unattended-upgrades recommends:
>> ii  systemd-cron [cron-daemon]  1.5.3-1
>>
>> Versions of packages unattended-upgrades suggests:
>> ii  bsd-mailx                          8.1.2-0.20150408cvs-1
>> ii  nullmailer [mail-transport-agent]  1:1.13-1
>>
>> - -- Configuration Files:
>> /etc/logrotate.d/unattended-upgrades changed:
>> /var/log/unattended-upgrades/unattended-upgrades.log
>> /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
>> /var/log/unattended-upgrades/unattended-upgrades-shutdown.log
>> {
>>   rotate 6
>>   daily
>>   compress
>>   missingok
>>   notifempty
>> }
>>
>>
>> - -- debconf information:
>> * unattended-upgrades/enable_auto_updates: true
>>   unattended-upgrades/origins_pattern: 
>> "origin=Debian,codename=${distro_codename},label=Debian-Security";
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1
>>
>> iQIcBAEBCAAGBQJWhFoPAAoJEK4fgnfEtNe2p7EP/34lPqW2bGSzeZvjk207ZRrT
>> p/34fGA8avOTuY6Dr7gxL9cHdbFa2L/pA2nGgLe4jSyf0k9Qg6WIS5piIg7zGX4+
>> QS27frJ9iqczwgfDZEIJ4A0ZXGPfedD1fCQRodFxKQ6BUYPqNe1GDldryuaLPtzh
>> LSMClIeaxTTMKRg9a/hJA2wPB1wdIyssGzH53mQn7/HqKkKOIlWleFJHisYaxiSG
>> +lpO5Uw1f8HfNnck0prp+9NuFsWe2BkoiOh9oji2CpqM34Wv3bgBQDYFdFUSkAIE
>> EjviryDRdP2Ypq8IlS3+S2vwxplrFgVB7E6tXbF9LkQLMDJ4oCELx+KhAvtFvCse
>> QDjAGU+oQWDe7VaTaY374Ctxs88YMgGJQ04GpOXnNQYINkmTtgztFspKiDCxdBxZ
>> VOrhTP4+6E7eqxYw7TL+QiLFt/ry2A8/aQ3CQTPd41AKCez3iqOsevs9jvJ3Pid4
>> yy+noF6CuvAXUHP2+CdhxPjJiUxbD8baDd4LocEH7s5Vcj4ashm404ZBApY99+En
>> 4I28FQKzTF7eJUaPWVFKy6705s2/nDU5t9loO7jx85TKTJMqWb45ACppWt87hCYW
>> NM2/Me9zn6Rx/IFxm71LO2kdvR9EsCQ3r+ibbrrYXlsd8AroB4KfsIu1DfpZF9OE
>> QmlIdeOvWmGrDmLzUQJ8
>> =b3y8
>> -----END PGP SIGNATURE-----

Reply via email to