Debianで自動アップデート設定

apt-get install unattended-upgrades

/etc/apt/apt.conf.d/50unattended-upgrades

Unattended-Upgrade::Origins-Pattern {
      "o=Debian,n=jessie";
      "o=Debian,n=jessie-updates";
      "o=Debian,n=jessie-proposed-updates";
      "o=Debian,n=jessie,l=Debian-Security";

        "origin=Debian,archive=${distro_codename},label=Debian-Security";
};

Unattended-Upgrade::Package-Blacklist {
};

/etc/apt/apt.conf.d/10periodicAPT::Periodic::Unattended-Upgrade "1";を追加

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::RandomSleep "0";

再起動をしなきゃいけないアップデートは以下を有効にするらしい
再起動が必要なら/var/run/reboot-requiredが作られるのか

// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade 
//Unattended-Upgrade::Automatic-Reboot "false";

参考リンク