提供:すだちWiki
移動先: 案内検索

ヘルプ:パッケージ管理システム設定(CentOS Stream)

メインページ > ヘルプ:目次 > ヘルプ:自宅サーバー構築(CentOS Stream)  > パッケージ管理システム設定(CentOS Stream)

インストール済パッケージの一括アップデート

[root@host4 ~]# dnf -y update
※大量のパッケージのダウンロード/アップデートを行うため時間がかかる

ベース、開発ツールパッケージ群インストール

[root@host4 ~]# dnf -y groupinstall base

[root@host4 ~]# dnf -y groupinstall development

[root@host4 ~]# dnf -y groupinstall network-tools

パッケージ自動更新

[root@host4 ~]# dnf install -y dnf-automatic dnf-utils
  • デフォルトではパッケージの取得だけでインストールはしない
[root@host4 ~]# cp -a /etc/dnf/automatic.conf{,.org}

[root@host4 ~]# sed -i -e 's/^apply_updates = no/apply_updates = yes/' /etc/dnf/automatic.conf
  • パッケージ自動更新起動
[root@host4 ~]# systemctl start dnf-automatic.timer

[root@host4 ~]# systemctl enable dnf-automatic.timer
Created symlink /etc/systemd/system/multi-user.target.wants/dnf-automatic.timer → /usr/lib/systemd/system/dnf-automatic.timer.

[root@host4 ~]# systemctl status dnf-automatic.timer
dnf-automatic.timer - dnf-automatic timer
   Loaded: loaded (/usr/lib/systemd/system/dnf-automatic.timer; enabled; vendor preset: disabled)
   Active: active (waiting) since Sun 2021-05-16 09:58:26 JST; 18s ago
   Trigger: Mon 2021-05-17 06:15:39 JST; 20h left

 5月 16 09:58:26 host4.sudachi.jp systemd[1]: Started dnf-automatic timer.