{"id":5745,"date":"2019-11-27T17:22:16","date_gmt":"2019-11-27T09:22:16","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5745"},"modified":"2019-11-28T21:18:38","modified_gmt":"2019-11-28T13:18:38","slug":"package-cleanup","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/package-cleanup","title":{"rendered":"package-cleanup\u547d\u4ee4 – \u6e05\u7406\u672c\u5730\u5b89\u88c5\u7684RPM\u8f6f\u4ef6\u5305"},"content":{"rendered":"\n
package-cleanup \u6e05\u7406\u672c\u5730\u5b89\u88c5\u7684\u3001\u91cd\u590d\u7684\u6216\u5b64\u7acb\u7684\u7684RPM\u8f6f\u4ef6\u5305\uff0c\u8fd9\u662f\u4e00\u4e2a\u53ea\u5bf9RPM\u6709\u7528\u7684\u5de5\u5177\uff0cUbuntu \u4e4b\u7c7b\u7684\u65e0\u6cd5\u4f7f\u7528\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>package-cleanup [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n \u5217\u51fa\u4e0e\u5176\u4ed6RPM\u6ca1\u6709\u4f9d\u8d56\u5173\u7cfb\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n \u5220\u9664\u65e7\u5185\u6838\u6587\u4ef6\uff1a<\/p>\n\n\n\n package-cleanup \u6e05\u7406\u672c\u5730\u5b89\u88c5\u7684\u3001\u91cd\u590d\u7684\u6216\u5b64\u7acb\u7684\u7684RPM\u8f6f\u4ef6\u5305\uff0c\u8fd9\u662f\u4e00\u4e2a\u53ea\u5bf9RPM\u6709\u7528\u7684\u5de5\u5177\uff0cU […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5745"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5745"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5745\/revisions"}],"predecessor-version":[{"id":5843,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5745\/revisions\/5843"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c<\/td> \u4f7f\u7528\u5907\u7528\u914d\u7f6e\u6587\u4ef6\uff08\u9ed8\u8ba4\u4e3a\/etc\/yum.conf\uff09<\/td><\/tr> -y<\/td> \u540c\u610f\u4efb\u4f55\u8981\u6c42<\/td><\/tr> \u2013leaves<\/td> \u5217\u51fa\u4e0e\u5176\u4ed6RPM\u6ca1\u6709\u4f9d\u8d56\u5173\u7cfb\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> \u2013orphans<\/td> \u5217\u51fa\u5f53\u524d\u8f6f\u4ef6\u4ed3\u5e93\u4e2d\u4e0d\u518d\u63d0\u4f9b\u652f\u6301\u7684\u672c\u5730\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> \u2013oldkernels<\/td> \u5220\u9664\u65e7\u5185\u6838\u6587\u4ef6\uff08kernel, kernel-devel\uff09<\/td><\/tr> \u2013problems<\/td> \u5217\u51fa\u6709\u4f9d\u8d56\u95ee\u9898\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> \u2013dupes<\/td> \u626b\u63cf\u91cd\u590d\u5b89\u88c5\u7684RPM\u8f6f\u4ef6\u5305<\/td><\/tr> \u2013cleandupes<\/td> \u626b\u63cf\u91cd\u590d\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff0c\u5e76\u5220\u9664\u8001\u7248\u672c\u7684\u8f6f\u4ef6\u5305<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# package-cleanup \u2013leaves\nlibacl-devel-2.2.49-8.fc14.i686\nlibcap-devel-2.17-1.fc13.i686\nlibchamplain-gtk-0.6.1-4.fc14.i686\n...<\/pre>\n\n\n\n
[root@linuxcool ~]# package-cleanup \u2013oldkernels<\/pre>\n","protected":false},"excerpt":{"rendered":"