{"id":159,"date":"2018-06-04T12:30:19","date_gmt":"2018-06-04T09:30:19","guid":{"rendered":"http:\/\/siteblog.tuc.gr\/nispanoudakis\/?p=159"},"modified":"2018-06-04T12:50:42","modified_gmt":"2018-06-04T09:50:42","slug":"yum-duplicate-packages-problem","status":"publish","type":"post","link":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/2018\/06\/04\/yum-duplicate-packages-problem\/","title":{"rendered":"yum: duplicate packages problem"},"content":{"rendered":"<p>This problem is based on a <em>yum update<\/em> or <em>yum install<\/em> failed operation, due to a network error or failure. It happened to me while updating a\u00a0<em>Centos 7<\/em> system. During the update the network was disconnected and the update operation failed. Then\u00a0after executing:<\/p>\n<p><code>yum update<\/code><\/p>\n<p>I had an error indicating that several packages had duplicates, e.g.:<\/p>\n<p><code>...<br \/>\nrpm-4.11.3-25.el7.x86_64 is a duplicate with rpm-4.11.3-21.el7.x86_64<br \/>\n...<\/code><\/p>\n<p>To cope with this problem you need to remove the new version -that was not correctly installed- from the rpm database, using the command:<\/p>\n<p><code>rpm -e --justdb --nodeps rpm-4.11.3-25.el7.x86_64<\/code><\/p>\n<p>You need to do this for all packages (above run for package <em>rpm-4.11.3-25.el7.x86_64<\/em>) marked as duplicates in the yum check command. Then, just do a normal update:<\/p>\n<p><code>yum update<\/code><\/p>\n<p>and the system will download the newest versions of all packages.<\/p>\n<p>To resolve this issue I was helped by this <a href=\"https:\/\/www.centos.org\/forums\/viewtopic.php?t=64589\" target=\"_blank\">thread<\/a> @ centos <a href=\"https:\/\/www.centos.org\/forums\" target=\"_blank\">forums<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This problem is based on a yum update or yum install failed operation, due to a network error or failure. It happened to me while updating a\u00a0Centos 7 system. During the update the network was disconnected and the update operation failed. Then\u00a0after executing: yum update I had an error indicating that several packages had duplicates, &hellip; <a href=\"https:\/\/siteblog.tuc.gr\/nispanoudakis\/2018\/06\/04\/yum-duplicate-packages-problem\/\" class=\"more-link\">\u03a3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1 \u03b1\u03bd\u03ac\u03b3\u03bd\u03c9\u03c3\u03b7\u03c2 <span class=\"screen-reader-text\">yum: duplicate packages problem<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":77,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,34,28,31,32,30],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-centos-7-linux","category-duplicate-package","category-linux","category-rpm","category-update","category-yum"],"_links":{"self":[{"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":9,"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/posts\/159\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siteblog.tuc.gr\/nispanoudakis\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}