DebianAutoUpgrade

DebianAutoUpgrade

autoupgrade debian/ubuntu server

apt-get install unattended-upgrades vi /etc/apt/apt.conf.d/50unattended-upgrades // Automatically upgrade packages from these (origin, archive) pairs Unattended-Upgrade::Allowed-Origins { "\${distro_id} stable"; "\${distro_id} \${distro_codename}-security"; // "\${distro_id} \${distro_codename}-updates"; // "\${distro_id} \${distro_codename}-proposed-updates"; };

vi /etc/apt/apt.conf.d/02periodic // Enable the update/upgrade script (0=disable) APT::Periodic::Enable "1";

// Do "apt-get update" automatically every n-days (0=disable) APT::Periodic::Update-Package-Lists "1";

// Do "apt-get upgrade --download-only" every n-days (0=disable) APT::Periodic::Download-Upgradeable-Packages "1";

// Run the "unattended-upgrade" security upgrade script // every n-days (0=disabled) // Requires the package "unattended-upgrades" and will write // a log in /var/log/unattended-upgrades APT::Periodic::Unattended-Upgrade "1";

// Do "apt-get autoclean" every n-days (0=disable) APT::Periodic::AutocleanInterval "7";

reference: http://www.howtoforge.com/how-to-configure-automatic-updates-on-debian-squeeze

Comments