Selasa, 17 April 2012

Mengatasi Duplicates Package pada Fedora

Mugkin ada yg mengalami duplicates package saat eksekusi di terminal seperti update dan install/remove sesuatu, yg error nya seperti di bawah ini :
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 14 pre-existing rpmdb problem(s), 'yum check' output follows:
1:NetworkManager-glib-0.9.2-1.fc16.i686 is a duplicate with 1:NetworkManager-glib-0.9.1.90-5.git20110927.fc16.i686
1:NetworkManager-gtk-0.9.2-1.fc16.i686 is a duplicate with 1:NetworkManager-gtk-0.9.1.90-5.git20110927.fc16.i686
iproute-2.6.39-4.fc16.i686 is a duplicate with iproute-2.6.39-3.fc16.i686
4:perl-5.14.2-191.fc16.i686 is a duplicate with 4:perl-5.14.2-190.fc16.i686
1:perl-Module-Pluggable-3.90-191.fc16.noarch is a duplicate with 1:perl-Module-
Pluggable-3.90-190.fc16.noarch
1:perl-Pod-Escapes-1.04-191.fc16.noarch is a duplicate with 1:perl-Pod-Escapes-1.04-190.fc16.noarch
1:perl-Pod-Simple-3.16-191.fc16.noarch is a duplicate with 1:perl-Pod-Simple-3.16-190.fc16.noarch
perl-Scalar-List-Utils-1.23-191.fc16.i686 is a duplicate with perl-Scalar-List-Utils-1.23-190.fc16.i686
4:perl-libs-5.14.2-191.fc16.i686 is a duplicate with 4:perl-libs-5.14.2-190.fc16.i686
4:perl-macros-5.14.2-191.fc16.i686 is a duplicate with 4:perl-macros-5.14.2-190.fc16.i686
perl-threads-1.83-191.fc16.i686 is a duplicate with perl-threads-1.83-190.fc16.i686
perl-threads-shared-1.37-191.fc16.i686 is a duplicate with perl-threads-shared-1.37-190.fc16.i686
selinux-policy-3.10.0-64.fc16.noarch is a duplicate with selinux-policy-3.10.0-61.fc16.noarch
selinux-policy-targeted-3.10.0-64.fc16.noarch is a duplicate with selinux-policy-targeted-3.10.0-61.fc16.noarch

Solusi nya kita bisa menggunakan “package-cleanup” dengan –dupes option yang berguna untuk memberikan list duplicates package dalam RPM database :

$ package-cleanup --dupes
contoh output :

NetworkManager-gtk-0.9.1.90-5.git20110927.fc16.i686
NetworkManager-gtk-0.9.2-1.fc16.i686
perl-macros-5.14.2-191.fc16.i686
perl-macros-5.14.2-190.fc16.i686
perl-libs-5.14.2-190.fc16.i686
perl-libs-5.14.2-191.fc16.i686
perl-Scalar-List-Utils-1.23-190.fc16.i686
perl-Scalar-List-Utils-1.23-191.fc16.i686
perl-5.14.2-191.fc16.i686
perl-5.14.2-190.fc16.i686
iproute-2.6.39-4.fc16.i686
iproute-2.6.39-3.fc16.i686
perl-Pod-Escapes-1.04-190.fc16.noarch
perl-Pod-Escapes-1.04-191.fc16.noarch
perl-Pod-Simple-3.16-190.fc16.noarch
perl-Pod-Simple-3.16-191.fc16.noarch
selinux-policy-targeted-3.10.0-61.fc16.noarch
selinux-policy-targeted-3.10.0-64.fc16.noarch
perl-threads-1.83-191.fc16.i686
perl-threads-1.83-190.fc16.i686
selinux-policy-3.10.0-64.fc16.noarch
selinux-policy-3.10.0-61.fc16.noarch
perl-threads-shared-1.37-191.fc16.i686
perl-threads-shared-1.37-190.fc16.i686
NetworkManager-glib-0.9.1.90-5.git20110927.fc16.i686
NetworkManager-glib-0.9.2-1.fc16.i686


Dari list di atas kita bisa melihat versi yang expired yang dah ga di perlukan, jadi bisa di delete dengan cara :

# yum remove nama_package
contoh :

# yum remove NetworkManager-gtk-0.9.1.90-5.git20110927.fc16.i686

Tidak ada komentar:

Posting Komentar