linux:unattended-updates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:unattended-updates [2018/07/23 17:45] – Wulf Rajek | linux:unattended-updates [2023/06/05 14:05] (current) – [Initial installation and configuration] Wulf Rajek | ||
---|---|---|---|
Line 13: | Line 13: | ||
#uncomment the desired origin. For only security updates, comment out everything else | #uncomment the desired origin. For only security updates, comment out everything else | ||
Unattended-Upgrade:: | Unattended-Upgrade:: | ||
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
+ | " | ||
//To enable ALL updates, use this: | //To enable ALL updates, use this: | ||
Line 57: | Line 58: | ||
< | < | ||
vi / | vi / | ||
- | * */4 * * * root sleep $(( 1$(date +\%N) \% 14400 )); | + | 0 */4 * * * root sleep $(( 1$(date +\%N) \% 14400 )); |
</ | </ | ||
Line 92: | Line 93: | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== Notify required reboot on login ===== | ||
+ | < | ||
+ | vi / | ||
+ | </ | ||
+ | add after the .bashrc call, but before the mesg line: | ||
+ | < | ||
+ | [ -f / | ||
+ | </ | ||
+ | |||
+ | ===== Running on battery ===== | ||
+ | |||
+ | For unattended-upgrades to skip upgrades when the system is running on battery, the following package needs to be installed: | ||
+ | < | ||
+ | apt-get install powermgmt-base | ||
+ | </ | ||
linux/unattended-updates.1532364350.txt.gz · Last modified: (external edit)