Difference between revisions of "APT Automatic updates"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
You can configure and control automatic updates modifying:  
 
You can configure and control automatic updates modifying:  
* Enable or disable: <code>/etc/apt/apt.conf.d/20auto-upgrades</code> <ref>https://help.ubuntu.com/lts/serverguide/automatic-updates.html</ref>  
+
* Enable or disable: <code>[[/etc/apt/apt.conf.d/20auto-upgrades]]</code> <ref>https://help.ubuntu.com/lts/serverguide/automatic-updates.html</ref>  
 
* <code>[[/etc/apt/apt.conf.d/50unattended-upgrades]]</code><ref>https://wiki.debian.org/UnattendedUpgrades</ref>  
 
* <code>[[/etc/apt/apt.conf.d/50unattended-upgrades]]</code><ref>https://wiki.debian.org/UnattendedUpgrades</ref>  
 
::<code>cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .</code>
 
::<code>cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .</code>

Revision as of 10:34, 28 October 2021

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

You can configure and control automatic updates modifying:

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:

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: