Difference between revisions of "APT Automatic updates"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
* List upgradable: <code>apt list updated && apt list --upgradable</code>
 
* List upgradable: <code>apt list updated && apt list --upgradable</code>
 
* Review package changelog: <code>[[apt]] changelog PACKAGE_NAME</code>  
 
* Review package changelog: <code>[[apt]] changelog PACKAGE_NAME</code>  
 +
 +
== Activities ==
 +
* Read [[Dpkg changes]]
 +
 +
  
 
==See also==
 
==See also==

Revision as of 09:37, 26 December 2019

Package: unattended-upgrades. To install it: apt install unattended-upgrades

You can configure and control automatic updates modifying:

  • enable or disable: /etc/apt/apt.conf.d/20auto-upgrades [1]
  • /etc/apt/apt.conf.d/50unattended-upgrades[2]
cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .


Or disabling systemd related services:

sudo systemctl disable apt-daily.service
sudo systemctl disable apt-daily.timer

sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.service

Check status: systemctl list-unit-files | grep apt-daily

  • List upgradable: apt list updated && apt list --upgradable
  • Review package changelog: apt changelog PACKAGE_NAME

Activities


See also

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: https://en.wikiversity.org/wiki/Linux_server_administration/apt/Automatic_updates

Advertising: