{"id":102,"date":"2012-05-27T22:40:00","date_gmt":"2012-05-27T22:40:00","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2012\/05\/27\/clean-up-existing-system\/"},"modified":"2012-05-27T22:40:00","modified_gmt":"2012-05-27T22:40:00","slug":"clean-up-existing-system","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=102","title":{"rendered":"Clean up existing system"},"content":{"rendered":"<p>If you want to clean up existing orphaned dependencies, then <em>package-cleanup<\/em> is your friend (from <em>yum-utils<\/em>).<\/p>\n<p>Take a look at all the packages that are orphaned, and make sure it is sane.<br \/>\n<code><br \/>\n<em> package-cleanup --leaves<\/em><br \/>\n<\/code><\/p>\n<p>If you\u2019re happy with the list, you can just remove them all (after you\u2019ve enabled yum\u2019s new autoremove feature, of course!):<\/p>\n<p><code><em>yum erase $(package-cleanup --leaves)<\/em><br \/>\n<\/code><\/p>\n<p>You can instantly see the benefit of this new feature \u2013 on my machine this command also removes <em>brand new<\/em> orphaned dependencies, created by the orphans I\u2019m removing! That\u2019s 59 packages in total.<\/p>\n<address>Powerered by <a title=\"Chris\" href=\"http:\/\/blog.christophersmart.com\/2010\/11\/11\/testing-yums-autoremove-orphaned-deps-feature\/\" target=\"_blank\" rel=\"noopener noreferrer\">this<\/a><\/address>\n","protected":false},"excerpt":{"rendered":"<p>If you want to clean up existing orphaned dependencies, then package-cleanup is your friend (from yum-utils). Take a look at all the packages that are orphaned, and make sure it is sane. package-cleanup &#8211;leaves If you\u2019re happy with the list, &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=102\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}