[tor-commits] [community/master] Add instruction on enable autoupdate in RHEL 8

gus at torproject.org gus at torproject.org
Fri Jan 22 01:50:56 UTC 2021


commit 8bf9d193ece88df1fdc8a386ae885e4c9a24f00a
Author: Tse Kit Yam <tsekityam at users.noreply.github.com>
Date:   Sun Jan 17 13:09:40 2021 +0800

    Add instruction on enable autoupdate in RHEL 8
    
    The tool for auto upgrade is changed from `yum-cron` to `dnf-automatic` in RHEL 8/ CentOS 8/ Fedora22.
    
    A session on how to setup `dnf-automatic` in RHEL 8/ CentOS 8 is added, which is based on https://fedoraproject.org/wiki/AutoUpdates#Fedora_22_or_later_versions
---
 .../guard/centosrhel/updates/contents.lr           | 30 ++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/content/relay-operations/technical-setup/guard/centosrhel/updates/contents.lr b/content/relay-operations/technical-setup/guard/centosrhel/updates/contents.lr
index b6e353f..71d3bf9 100644
--- a/content/relay-operations/technical-setup/guard/centosrhel/updates/contents.lr
+++ b/content/relay-operations/technical-setup/guard/centosrhel/updates/contents.lr
@@ -6,9 +6,35 @@ title: RPM Distributions
 ---
 body:
 
-# CentOS and RHEL
+# CentOS and RHEL 8 or later versions
 
-For CentOS and RHEL the yum-cron package is the preferred approach:
+For CentOS and RHEL 8 or earlier versions, the dnf-automatic package is the preferred approach:
+
+```
+dnf install dnf-automatic
+```
+
+In /etc/dnf/automatic.conf set:
+
+```
+download_updates = yes
+apply_updates = yes
+```
+
+Enable and start automatic updates via:
+
+```
+systemctl enable --now dnf-automatic.timer
+```
+
+Check status of dnf-automatic:
+```
+systemctl list-timers *dnf-*
+```
+
+# CentOS and RHEL 7 or earlier versions
+
+For CentOS and RHEL 7 or earlier versions, the yum-cron package is the preferred approach:
 
 ```
 yum install yum-cron





More information about the tor-commits mailing list