wiki:TorRelayGuide/DebianUbuntuUpdates

Version 5 (modified by Dbryrtfbcbhgf, 22 months ago) (diff)

Added more commands to /etc/apt/apt.conf.d/20auto-upgrades from https://help.ubuntu.com/lts/serverguide/automatic-updates.html

Debian

  1. Install the required packages
    apt-get install unattended-upgrades apt-listchanges
    
  1. Put the configuration file /etc/apt/apt.conf.d/50unattended-upgrades in place
    Unattended-Upgrade::Origins-Pattern {
            "origin=Debian,codename=${distro_codename},label=Debian-Security";
    	"origin=TorProject";
    };
    
    Unattended-Upgrade::Package-Blacklist {
    };
    
    Unattended-Upgrade::Mail "root";
    
  1. If you want to automatically reboot add the following at the the end of the file /etc/apt/apt.conf.d/50unattended-upgrades:
    Unattended-Upgrade::Automatic-Reboot "true";
    
  1. Create the file /etc/apt/apt.conf.d/20auto-upgrades by running the following command.
    sudo dpkg-reconfigure -plow unattended-upgrades
    
  2. Add the following two lines to the new file at /etc/apt/apt.conf.d/20auto-upgrades:
    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Download-Upgradeable-Packages "1";
    APT::Periodic::AutocleanInterval "5";
    APT::Periodic::Unattended-Upgrade "1";