{"id":8682,"date":"2019-12-04T13:01:09","date_gmt":"2019-12-04T13:01:09","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=8682"},"modified":"2022-02-12T17:50:18","modified_gmt":"2022-02-12T12:20:18","slug":"clean-the-yum-cache-in-centos","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/","title":{"rendered":"Clean the YUM Cache in CentOS"},"content":{"rendered":"<p>This article will explain how to clean the YUM cache in CentOS.<\/p>\n<p>YUM is an abbreviation for Yellowdog Updater, Modifier which is a free and open-source command-line package-management tool. It is developed for computers with Linux Operating System using the RPM Package Manager. YUM enables you to automatically update packages and dependency management on RPM-based distribution. There are chances that package may get stored in YUM&#8217;s cache even after the package is downloaded, installed or removed. You can see that cache packages are mostly found in <strong>\/var\/cache\/yum<\/strong>.<\/p>\n<p>You may need to clear the YUM cache to make some space on disk or to fix errors that occurred due to corrupted metadata files.<\/p>\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<p>1) Clean all the cached packages located in the enabled repository cache directory.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">yum clean packages<\/pre>\n<p>2) Delete the package headers.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">yum clean headers<\/pre>\n<p>3) Delete metadata of all the enabled repository.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">yum clean metadata<\/pre>\n<p>4) Clean all the cached information.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">yum clean all<\/pre>\n<p>That&#8217;s it!<\/p>\n<p>Following these steps, you can surely clean the YUM cache in CentOS.<\/p>\n<p><strong>Also Read :<\/strong><\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-clear-wordpress-cache\/\" target=\"_blank\" rel=\"noopener\"><strong> How To Clear WordPress Cache?<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/learn-to-clear-the-local-dns-cache-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong> Learn to clear the local DNS cache in Linux<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will explain how to clean the YUM cache in CentOS. YUM is an abbreviation for Yellowdog Updater, Modifier which is a free and open-source command-line package-management tool. It is developed for computers with Linux Operating System using the RPM Package Manager. YUM enables you to automatically update packages and dependency management on RPM-based [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[951,1143,1144,1142],"class_list":["post-8682","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-web-hosting-faq","tag-centos","tag-clear-yum-cache","tag-clear-yum-cache-in-centos","tag-yum"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Clean the YUM Cache in CentOS - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"description\" content=\"The article explains how to clear the YUM cache in CentOS in 4 easy steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Clean the YUM Cache in CentOS - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"The article explains how to clear the YUM cache in CentOS in 4 easy steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-04T13:01:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-12T12:20:18+00:00\" \/>\n<meta name=\"author\" content=\"Sonam Wagh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonam Wagh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\"},\"author\":{\"name\":\"Sonam Wagh\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"headline\":\"Clean the YUM Cache in CentOS\",\"datePublished\":\"2019-12-04T13:01:09+00:00\",\"dateModified\":\"2022-02-12T12:20:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\"},\"wordCount\":201,\"commentCount\":0,\"keywords\":[\"CentOS\",\"clear YUM cache\",\"clear YUM cache in CentOS\",\"YUM\"],\"articleSection\":[\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\",\"name\":\"Clean the YUM Cache in CentOS - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2019-12-04T13:01:09+00:00\",\"dateModified\":\"2022-02-12T12:20:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"description\":\"The article explains how to clear the YUM cache in CentOS in 4 easy steps.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Clean the YUM Cache in CentOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\",\"name\":\"Sonam Wagh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"caption\":\"Sonam Wagh\"},\"description\":\"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Clean the YUM Cache in CentOS - Web Hosting FAQs by MilesWeb","description":"The article explains how to clear the YUM cache in CentOS in 4 easy steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/","og_locale":"en_US","og_type":"article","og_title":"Clean the YUM Cache in CentOS - Web Hosting FAQs by MilesWeb","og_description":"The article explains how to clear the YUM cache in CentOS in 4 easy steps.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-12-04T13:01:09+00:00","article_modified_time":"2022-02-12T12:20:18+00:00","author":"Sonam Wagh","twitter_misc":{"Written by":"Sonam Wagh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/"},"author":{"name":"Sonam Wagh","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"headline":"Clean the YUM Cache in CentOS","datePublished":"2019-12-04T13:01:09+00:00","dateModified":"2022-02-12T12:20:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/"},"wordCount":201,"commentCount":0,"keywords":["CentOS","clear YUM cache","clear YUM cache in CentOS","YUM"],"articleSection":["Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/","name":"Clean the YUM Cache in CentOS - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2019-12-04T13:01:09+00:00","dateModified":"2022-02-12T12:20:18+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"description":"The article explains how to clear the YUM cache in CentOS in 4 easy steps.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/clean-the-yum-cache-in-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Clean the YUM Cache in CentOS"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4","name":"Sonam Wagh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","caption":"Sonam Wagh"},"description":"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=8682"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8682\/revisions"}],"predecessor-version":[{"id":15760,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8682\/revisions\/15760"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=8682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=8682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=8682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}