{"id":18759,"date":"2024-05-25T10:52:35","date_gmt":"2024-05-25T10:52:35","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/clean-the-yum-cache-in-centos\/"},"modified":"2024-06-16T16:52:06","modified_gmt":"2024-06-16T16:52:06","slug":"clean-the-yum-cache-in-centos","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/clean-the-yum-cache-in-centos\/","title":{"rendered":"Clean the YUM Cache in CentOS"},"content":{"rendered":"\n<p>This article will explain how to clean the YUM cache in CentOS.<\/p>\n\n\n\n<p>Yellowdog Updater, Modifier is a free and open-source command-line package manager that goes by the acronym YUM. It is created with the RPM Package Manager for Linux-powered systems. With RPM-based distributions, you may use YUM to automatically update packages and manage dependencies. Even if the package is downloaded, installed, or deleted, there&#8217;s a potential that it will still remain in YUM&#8217;s cache. It is evident that the majority of cache packages may be located in \/var\/cache\/yum.<\/p>\n\n\n\n<p>If you need to free up disk space or repair issues brought on by damaged metadata files, you might need to empty the YUM cache.<\/p>\n\n\n\n<p>To clear YUM cache you need to be logged in to the server as root user and then execute following commands.<\/p>\n\n\n\n<p>1) Clean all the cached packages located in the enabled repository cache directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum clean packages<\/pre>\n\n\n\n<p>2) Delete the package headers.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum clean headers<\/pre>\n\n\n\n<p>3) Delete metadata of all the enabled repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum clean metadata<\/pre>\n\n\n\n<p>4) Clean all the cached information.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum clean all<\/pre>\n\n\n\n<p>That\u2019s it!<\/p>\n\n\n\n<p>Following these steps, you can surely clean the YUM cache in CentOS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will explain how to clean the YUM cache in CentOS. Yellowdog Updater, Modifier is a free and open-source command-line package manager that goes by the acronym YUM. It is created with the RPM Package Manager for Linux-powered systems. With RPM-based distributions, you may use YUM to automatically update packages and manage dependencies. Even [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":1364,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-18759","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=18759"}],"version-history":[{"count":1,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18759\/revisions"}],"predecessor-version":[{"id":18762,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18759\/revisions\/18762"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=18759"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=18759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}