Skip to main content

Enable Auto Updates

·94 words·1 min·
Table of Contents
New vulnerabilities are found regularly. Ensuring system packages are up to date is crucial for security.

Ubuntu can apply security updates automatically, without user interaction. This is done via the unattended-upgrades package, which is installed by default.

Auto Update
#

Consider enabling auto security updates:

% sudo apt install unattended-upgrades
% sudo dpkg-reconfigure --priority=low unattended-upgrades

To check the current auto-upgrade status:

% apt-config dump APT::Periodic::Unattended-Upgrade

Testing and/or debugging:

% sudo unattended-upgrades --dry-run --debug

Manual Update
#

To manually update packages:

% sudo apt update && sudo apt upgrade 

Links#

zd
Author
zd
cli-geek, strategist, architect

Related