{"id":878,"date":"2010-07-06T10:08:40","date_gmt":"2010-07-06T08:08:40","guid":{"rendered":"http:\/\/raftaman.net\/?p=878"},"modified":"2021-05-15T11:46:40","modified_gmt":"2021-05-15T09:46:40","slug":"cleaning-up-locally-installed-rpms-with-package-cleanup","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=878","title":{"rendered":"Cleaning up locally-installed RPMs with package-cleanup"},"content":{"rendered":"<p>Sometimes, packages you never actually use get installed as dependency by yum (or even during initial installation by anaconda). <code>package-cleanup<\/code> is a great tool that helps you find packages not required by other packages. It it part of the <code>yum-utils<\/code> package which can easily be pulled with yum:<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n# yum install yum-utils\r\n<\/pre>\n<h2>1. Find and review &#8220;unused&#8221; packages<\/h2>\n<p>You can find packages not required by other packages with<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n# package-cleanup --leaves\r\n<\/pre>\n<p>These packages could be candidates for removal, but check to see whether you use them directly or if they are used by applications not backed by rpm packages.<\/p>\n<h2>2. Find and review &#8220;lost&#8221; packages<\/h2>\n<p>You can find orphaned packages (i.e. packages not in the repositories anymore) with<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\n# package-cleanup --orphans\r\n<\/pre>\n<p>This will also show packages which have been partially uninstalled but where the &#8220;%postun&#8221; script failed.<\/p>\n<p>See also <a href=\"http:\/\/linux.die.net\/man\/1\/package-cleanup\">package-cleanup manpage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, packages you never actually use get installed as dependency by yum (or even during initial installation by anaconda). package-cleanup is a great tool that helps you find packages not required by other packages. It it part of the yum-utils package which can easily be pulled with yum: # yum install yum-utils 1. Find and review &#8220;unused&#8221; packages You can&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=878\">Read more &raquo;<\/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":[13,7,48],"class_list":["post-878","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-centos","tag-fedora","tag-rpm"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=878"}],"version-history":[{"count":9,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":2682,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/878\/revisions\/2682"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}