packages:automatic_updates
Differences
This shows you the differences between two versions of the page.
packages:automatic_updates [2016/07/05 16:02] – created peter | packages:automatic_updates [2019/12/01 11:47] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Packages - Automatic updates ====== | ||
- | |||
- | The **unattended-upgrades** package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates. | ||
- | |||
- | <code bash> | ||
- | sudo apt install unattended-upgrades | ||
- | </ | ||
- | |||
- | To configure unattended-upgrades, | ||
- | |||
- | <file bash / | ||
- | Unattended-Upgrade:: | ||
- | " | ||
- | // " | ||
- | }; | ||
- | </ | ||
- | |||
- | Certain packages can also be blacklisted and therefore will not be automatically updated. | ||
- | |||
- | <file bash / | ||
- | Unattended-Upgrade:: | ||
- | // " | ||
- | // " | ||
- | // " | ||
- | // " | ||
- | }; | ||
- | </ | ||
- | |||
- | The double “//” serve as comments, so whatever follows "//" | ||
- | |||
- | To enable automatic updates, edit **/ | ||
- | |||
- | <file bash / | ||
- | APT:: | ||
- | APT:: | ||
- | APT:: | ||
- | APT:: | ||
- | </ | ||
- | |||
- | The above configuration updates the package list, downloads, and installs available upgrades every day. The local download archive is cleaned every week. | ||
- | |||
- | You can read more about apt Periodic configuration options in the **/ | ||
- | |||
- | The results of unattended-upgrades will be logged to **/ | ||
- | |||
- | ===== Notifications ===== | ||
- | |||
- | Configuring **Unattended-Upgrade:: | ||
- | |||
- | Another useful package is **apticron**. | ||
- | |||
- | To install the apticron package, in a terminal enter: | ||
- | |||
- | <code bash> | ||
- | sudo apt install apticron | ||
- | </ | ||
- | |||
- | Once the package is installed edit **/ | ||
- | |||
- | <file bash / | ||
- | EMAIL=" | ||
- | </ | ||
packages/automatic_updates.1467734564.txt.gz · Last modified: 2020/07/15 09:30 (external edit)