#author("2025-04-15T10:43:27+00:00","default:iseki","iseki") #author("2025-04-15T10:44:36+00:00","default:iseki","iseki") * DNF (Dandified Yum) ** Repository *** CBR - dnf config-manager --set-enabled crb -- crb リポジトリの有効にしておかないと,devel の一部が dnf でインストールできない. *** EPEL - dnf install epel-release ** 操作 *** コマンド [#m939aaef] dnf check-update dnf -y update dnf search <name> dnf -y install <name> **** clean up (キャッシュのクリア) dnf clean all dnf update ** エラー [#s67d5fab] *** 途中で中断などして壊れた場合 [#f62d714f] **** エラーメッセージ例 [#h28dd383] system-config-securitylevel-1.6.29.1-5.el5.i386 system-config-securitylevel-tui-1.6.29.1-2.1.el5.i386 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: rsync.atworks.co.jp * base: rsync.atworks.co.jp * extras: rsync.atworks.co.jp * updates: rsync.atworks.co.jp Setting up Update Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them. The program yum-complete-transaction is found in the yum-utils package. --> Running transaction check ---> Package NetworkManager.i386 1:0.7.0-10.el5 set to be updated ---> Package NetworkManager-glib.i386 1:0.7.0-10.el5 set to be updated ---> Package NetworkManager-gnome.i386 1:0.7.0-10.el5 set to be updated ---> Package avahi.i386 0:0.6.16-7.el5 set to be updated **** 対策 [#hb3b0de6] # yum -y install yum-utils # yum-complete-transaction *** Trouble Shooting [#oef3e29b] **** repomd.xml GPG signature verification error: Bad GPG signature [#o8b1da8e] # rpm -e gpg-pubkey # dnf clean all # rm -rf /var/cache/dnf/* # rm /var/cache/dnf/.gpgkeyschecked.yum # dnf update