Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
1,546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.79 KB | None | 0 0
  1. // Automatically upgrade packages from these (origin:archive) pairs
  2. //
  3. // Note that in Ubuntu security updates may pull in new dependencies
  4. // from non-security sources (e.g. chromium). By allowing the release
  5. // pocket these get automatically pulled in.
  6. Unattended-Upgrade::Allowed-Origins {
  7.         "${distro_id}:${distro_codename}";
  8.         "${distro_id}:${distro_codename}-security";
  9.         // Extended Security Maintenance; doesn't necessarily exist for
  10.        // every release and this system may not have it installed, but if
  11.        // available, the policy for updates is such that unattended-upgrades
  12.        // should also install from here by default.
  13.        "${distro_id}ESM:${distro_codename}";
  14.        "${distro_id}:${distro_codename}-updates";
  15.        "${distro_id}:${distro_codename}-proposed";
  16.        "${distro_id}:${distro_codename}-backports";
  17. };
  18.  
  19. // List of packages to not update (regexp are supported)
  20. Unattended-Upgrade::Package-Blacklist {
  21. //      "vim";
  22. //      "libc6";
  23. //      "libc6-dev";
  24. //      "libc6-i686";
  25. };
  26.  
  27. // This option will controls whether the development release of Ubuntu will be
  28. // upgraded automatically.
  29. Unattended-Upgrade::DevRelease "false";
  30.  
  31. // This option allows you to control if on a unclean dpkg exit
  32. // unattended-upgrades will automatically run
  33. //   dpkg --force-confold --configure -a
  34. // The default is true, to ensure updates keep getting installed
  35. //Unattended-Upgrade::AutoFixInterruptedDpkg "false";
  36.  
  37. // Split the upgrade into the smallest possible chunks so that
  38. // they can be interrupted with SIGTERM. This makes the upgrade
  39. // a bit slower but it has the benefit that shutdown while a upgrade
  40. // is running is possible (with a small delay)
  41. //Unattended-Upgrade::MinimalSteps "false";
  42.  
  43. // Install all unattended-upgrades when the machine is shutting down
  44. // instead of doing it in the background while the machine is running
  45. // This will (obviously) make shutdown slower
  46. //Unattended-Upgrade::InstallOnShutdown "true";
  47.  
  48. // Send email to this address for problems or packages upgrades
  49. // If empty or unset then no email is sent, make sure that you
  50. // have a working mail setup on your system. A package that provides
  51. // 'mailx' must be installed. E.g. "user@example.com"
  52. //Unattended-Upgrade::Mail "root";
  53.  
  54. // Set this value to "true" to get emails only on errors. Default
  55. // is to always send a mail if Unattended-Upgrade::Mail is set
  56. //Unattended-Upgrade::MailOnlyOnError "true";
  57.  
  58. // Remove unused automatically installed kernel-related packages
  59. // (kernel images, kernel headers and kernel version locked tools).
  60. Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
  61.  
  62. // Do automatic removal of new unused dependencies after the upgrade
  63. // (equivalent to apt-get autoremove)
  64. Unattended-Upgrade::Remove-Unused-Dependencies "true";
  65.  
  66. // Automatically reboot *WITHOUT CONFIRMATION*
  67. //  if the file /var/run/reboot-required is found after the upgrade
  68. Unattended-Upgrade::Automatic-Reboot "true";
  69.  
  70. // If automatic reboot is enabled and needed, reboot at the specific
  71. // time instead of immediately
  72. //  Default: "now"
  73. Unattended-Upgrade::Automatic-Reboot-Time "02:00";
  74.  
  75. // Use apt bandwidth limit feature, this example limits the download
  76. // speed to 70kb/sec
  77. //Acquire::http::Dl-Limit "70";
  78.  
  79. // Enable logging to syslog. Default is False
  80. // Unattended-Upgrade::SyslogEnable "false";
  81.  
  82. // Specify syslog facility. Default is daemon
  83. // Unattended-Upgrade::SyslogFacility "daemon";
  84.  
  85. // Download and install upgrades only on AC power
  86. // (i.e. skip or gracefully stop updates on battery)
  87. // Unattended-Upgrade::OnlyOnACPower "true";
  88.  
  89. // Download and install upgrades only on non-metered connection
  90. // (i.e. skip or gracefully stop updates on a metered connection)
  91. // Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement