2.3. セキュリティー更新プログラムの自動インストール
すべてのセキュリティー更新を自動的にダウンロードおよびインストールするようにシステムを設定できます。
前提条件
- 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 = security
systemd
タイマーユニットを有効にして起動します。# systemctl enable --now dnf-automatic-install.timer
検証
タイマーが有効化されていることを確認します。
# systemctl status dnf-automatic-install.timer
関連情報
-
dnf-automatic (8)
man ページ