8.2.3. セキュリティー更新の自動インストール
dnf-automatic ツールを設定して、セキュリティー更新を自動的にダウンロードおよびインストールします。このタスクを自動化することで、手動による介入を必要とせずに、新たに発見された脅威からシステムを確実に保護できます。
詳細は、システム上の dnf-automatic(8) man ページを参照してください。
前提条件
- Red Hat サブスクリプションがホストに割り当てられている。
-
dnf-automaticパッケージがインストールされている。
手順
/etc/dnf/automatic.confファイルの[commands]セクションで、upgrade_typeオプションがdefaultまたはsecurityに設定されていることを確認します。[commands] # What kind of upgrade to perform: # default = all available upgrades # security = only the security upgrades upgrade_type = securitysystemd タイマーユニットを有効にして起動します。
# systemctl enable --now dnf-automatic-install.timer
検証
タイマーが有効化されていることを確認します。
# systemctl status dnf-automatic-install.timer