ゆう's Blog
fedora41にdnf5-plugin-automaticをインストールする

# dnf install dnf5-plugin-automatic Updating and loading repositories: Repositories loaded. Failed to resolve the transaction: Problem: conflicting requests - package dnf5-plugin-automatic-5.2.6.2-1.fc41.x86_64 from fedora requires libcurl-full(x86-64), but none of the providers can be installed - package dnf5-plugin-automatic-5.2.7.0-1.fc41.x86_64 from updates requires libcurl-full(x86-64), but none of the providers can be installed - problem with installed package - installed package libcurl-minimal-8.9.1-2.fc41.x86_64 conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora - package libcurl-minimal-8.9.1-2.fc41.x86_64 from fedora conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora You can try to add to command line: --allowerasing to allow erasing of installed packages to resolve problems --skip-broken to skip uninstallable packages

インストール中に依存関係の問題が発生した場合、特にlibcurlに関連する競合が報告されています。その場合は、次のコマンドで競合するパッケージを交換できます:

# dnf swap libcurl-minimal libcurl


インストール後、設定ファイルを作成します:

# cp /usr/share/dnf5/dnf5-plugins/automatic.conf /etc/dnf/dnf5-plugins/automatic.conf

設定ファイルを編集して自動アップデートを設定します。例えば:

# vi /etc/dnf/dnf5-plugins/automatic.conf

[commands] # Whether updates should be applied when they are available, by # dnf5 automatic. apply_updates = yes

dnf5-automatic.service の ExecStart に --installupdates を追加。

# vi /usr/lib/systemd/system/dnf5-automatic.service

ExecStart=/usr/bin/dnf5 automatic --timer --installupdates

最後に、自動アップデート機能を有効化します:

# systemctl enable --now dnf5-automatic.timer


マジ?

相互依存性:
apply_updatesがyesでも、タイマーが無効なら自動更新は実行されません。
タイマーが有効でも、apply_updatesがnoなら更新は適用されません。

自動インストールを行うためには、download_updates = yes の設定に加えて、dnf-automatic-install.timer を有効にする必要があります。これにより、ダウンロードされた更新パッケージが自動的にインストールされます。