Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung
server_und_serverdienste:automatische_updates_debian_ubuntu [2017/04/01 18:20] – [Automatisches entfernen alter Kernels] adminserver_und_serverdienste:automatische_updates_debian_ubuntu [2017/11/10 22:48] boospy
Zeile 7: Zeile 7:
      
   APT::Periodic::Update-Package-Lists "1";   APT::Periodic::Update-Package-Lists "1";
-  APT::Periodic::Download-Upgradeable-Packages "3";+  APT::Periodic::Download-Upgradeable-Packages "1";
   APT::Periodic::AutocleanInterval "30";   APT::Periodic::AutocleanInterval "30";
-  APT::Periodic::Unattended-Upgrade "5";+  APT::Periodic::Unattended-Upgrade "7";
  
 Die Zeilen erklären sich wohl von alleine. Die Configdatei hierfür wäre z.B. (Ubuntu 16.04.2) das: Die Zeilen erklären sich wohl von alleine. Die Configdatei hierfür wäre z.B. (Ubuntu 16.04.2) das:
 +''nano /etc/apt/apt.conf.d/50unattended-upgrades''
 <file bash 50unattended-upgrades> <file bash 50unattended-upgrades>
-  < nano /etc/apt/apt.conf.d/50unattended-upgrades + // Automatically upgrade packages from these (origin:archive) pairs 
-   +Unattended-Upgrade::Allowed-Origins { 
-  // Automatically upgrade packages from these (origin:archive) pairs +        "${distro_id}:${distro_codename}"; 
-  Unattended-Upgrade::Allowed-Origins { +        "${distro_id}:${distro_codename}-security"; 
-          "${distro_id}:${distro_codename}"; +        // Extended Security Maintenance; doesn't necessarily exist for 
-          "${distro_id}:${distro_codename}-security"; +        // every release and this system may not have it installed, but if 
-          "${distro_id}:${distro_codename}-updates"; +        // available, the policy for updates is such that unattended-upgrades 
-  //      "${distro_id}:${distro_codename}-proposed"; +        // should also install from here by default. 
-          "${distro_id}:${distro_codename}-backports"; +        "${distro_id}ESM:${distro_codename}"; 
-  }; +        "${distro_id}:${distro_codename}-updates"; 
-   +//      "${distro_id}:${distro_codename}-proposed"; 
-  // List of packages to not update (regexp are supported) +        "${distro_id}:${distro_codename}-backports"; 
-  Unattended-Upgrade::Package-Blacklist { +}; 
-  //      "vim"; + 
-  //      "libc6"; +// List of packages to not update (regexp are supported) 
-  //      "libc6-dev"; +Unattended-Upgrade::Package-Blacklist { 
-  //      "libc6-i686"; +//      "vim"; 
-  }; +//      "libc6"; 
-   +//      "libc6-dev"; 
-  // This option allows you to control if on a unclean dpkg exit +//      "libc6-i686"; 
-  // unattended-upgrades will automatically run  +}; 
-  //   dpkg --force-confold --configure -a + 
-  // The default is true, to ensure updates keep getting installed +// This option allows you to control if on a unclean dpkg exit 
-  Unattended-Upgrade::AutoFixInterruptedDpkg "true"; +// unattended-upgrades will automatically run  
-   +//   dpkg --force-confold --configure -a 
-  // Split the upgrade into the smallest possible chunks so that +// The default is true, to ensure updates keep getting installed 
-  // they can be interrupted with SIGUSR1. This makes the upgrade +Unattended-Upgrade::AutoFixInterruptedDpkg "true"; 
-  // a bit slower but it has the benefit that shutdown while a upgrade + 
-  // is running is possible (with a small delay) +// Split the upgrade into the smallest possible chunks so that 
-  //Unattended-Upgrade::MinimalSteps "true"; +// they can be interrupted with SIGUSR1. This makes the upgrade 
-   +// a bit slower but it has the benefit that shutdown while a upgrade 
-  // Install all unattended-upgrades when the machine is shuting down +// is running is possible (with a small delay) 
-  // instead of doing it in the background while the machine is running +//Unattended-Upgrade::MinimalSteps "true"; 
-  // This will (obviously) make shutdown slower + 
-  Unattended-Upgrade::InstallOnShutdown "false"; +// Install all unattended-upgrades when the machine is shuting down 
-   +// instead of doing it in the background while the machine is running 
-  // Send email to this address for problems or packages upgrades +// This will (obviously) make shutdown slower 
-  // If empty or unset then no email is sent, make sure that you +Unattended-Upgrade::InstallOnShutdown "false"; 
-  // have a working mail setup on your system. A package that provides + 
-  // 'mailx' must be installed. E.g. "bal@bla.at+// Send email to this address for problems or packages upgrades 
-  //Unattended-Upgrade::Mail "technik@iteas.at"; +// If empty or unset then no email is sent, make sure that you 
-   +// have a working mail setup on your system. A package that provides 
-  // Set this value to "true" to get emails only on errors. Default +// 'mailx' must be installed. E.g. "user@example.com
-  // is to always send a mail if Unattended-Upgrade::Mail is set +// Unattended-Upgrade::Mail "test@bla.com"; 
-  Unattended-Upgrade::MailOnlyOnError "true"; + 
-   +// Set this value to "true" to get emails only on errors. Default 
-  // Do automatic removal of new unused dependencies after the upgrade +// is to always send a mail if Unattended-Upgrade::Mail is set 
-  // (equivalent to apt-get autoremove) +Unattended-Upgrade::MailOnlyOnError "true"; 
-  Unattended-Upgrade::Remove-Unused-Dependencies "true"; + 
-   +// Do automatic removal of new unused dependencies after the upgrade 
-  // Automatically reboot *WITHOUT CONFIRMATION* +// (equivalent to apt-get autoremove) 
-  //  if the file /var/run/reboot-required is found after the upgrade  +Unattended-Upgrade::Remove-Unused-Dependencies "true"; 
-  Unattended-Upgrade::Automatic-Reboot "true"; + 
-   +// Automatically reboot *WITHOUT CONFIRMATION* 
-  // If automatic reboot is enabled and needed, reboot at the specific +//  if the file /var/run/reboot-required is found after the upgrade  
-  // time instead of immediately +Unattended-Upgrade::Automatic-Reboot "true"; 
-  //  Default: "now" + 
-  //Unattended-Upgrade::Automatic-Reboot-Time "02:00"; +// If automatic reboot is enabled and needed, reboot at the specific 
-   +// time instead of immediately 
-  // Use apt bandwidth limit feature, this example limits the download +//  Default: "now" 
-  // speed to 70kb/sec +Unattended-Upgrade::Automatic-Reboot-Time "06:30"; 
-  //Acquire::http::Dl-Limit "70";>+ 
 +// Use apt bandwidth limit feature, this example limits the download 
 +// speed to 70kb/sec 
 +//Acquire::http::Dl-Limit "70";
  
 </file> </file>