{"id":31,"date":"2015-08-24T21:06:00","date_gmt":"2015-08-24T21:06:00","guid":{"rendered":"https:\/\/www.tech-and-dev.com\/blog\/2015\/08\/24\/fix-yum-update-duplicate-packages-issue\/"},"modified":"2021-02-22T01:04:28","modified_gmt":"2021-02-22T01:04:28","slug":"fix-yum-update-duplicate-packages-issue","status":"publish","type":"post","link":"https:\/\/www.tech-and-dev.com\/blog\/2015\/08\/fix-yum-update-duplicate-packages-issue.html","title":{"rendered":"Fix Yum Update Duplicate Packages Issue"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/yum-logo.png\"><img decoding=\"async\" title=\"Yum logo\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/yum-logo.png\" alt=\"Yum logo\" border=\"0\" \/><\/a><\/div>\n<p><b><span style=\"color: #38761d;\">First install yum utils if it&#8217;s not installed<\/span><\/b><\/p>\n<pre>yum install yum-utils<\/pre>\n<p><b><span style=\"color: blue;\">1- Second, start with<\/span><\/b><\/p>\n<pre>yum-complete-transaction\r\nyum update<\/pre>\n<p><b><span style=\"color: orange;\">2- If that doesn&#8217;t work, try<\/span><\/b><\/p>\n<pre>yum clean all\r\nyum update<\/pre>\n<p><span style=\"color: #cc0000;\"><b>3- If the above doesn&#8217;t work, try the below:<\/b><\/span><\/p>\n<pre>yum update --skip-broken<\/pre>\n<p><a name=\"more\"><\/a><br \/>\nThen (this might take a while)<\/p>\n<pre>yum check all<\/pre>\n<p>Then clean Duplicates<\/p>\n<pre>package-cleanup --cleandupes<\/pre>\n<p>Then update again:<\/p>\n<pre>yum update<\/pre>\n<p>In addition, if you just want to list the duplicates, (this will not fix anything)<\/p>\n<pre>package-cleanup --dupes # list out duplicates<\/pre>\n<p>In case of a disconnection while yum is cleaning, the following command will complete the cleanup:<\/p>\n<pre>yum-complete-transaction --cleanup-only<\/pre>\n<p><b>Questions? Ask below! <\/b><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>First install yum utils if it&#8217;s not installed yum install yum-utils 1- Second, start with yum-complete-transaction yum update 2- If that doesn&#8217;t work, try yum clean all yum update 3- If the above doesn&#8217;t work, try the below: yum update &#8211;skip-broken Then (this might take a while) yum check all Then clean Duplicates package-cleanup &#8211;cleandupes [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[43,17,7],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-bash","category-centos","category-ssh"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":2,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":326,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions\/326"}],"wp:attachment":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}