• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : How to prevent disabled repositories from being downloaded into the yum cache

by admin

Question: How to prevent disabled repositories from being downloaded into the yum cache

Answer:

Yum does not fetch content from disabled repositories, but the yum cache may still hold a record of these repositories. The command “yum clean all” does not try to remove content from disabled repositories.

So, to entirely get rid of them, use

# rm -rf /var/cache/yum/*

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to uninstall nodejs software package in Ubuntu
  2. How to Disable IPv6 on Ubuntu 20.04 Focal Fossa
  3. cake: The command-line processor for the CakePHP framework
  4. How to Migrate virtual machines from one host to another in the Red Hat Virtualization environment
  5. “aws pricing” Command Examples
  6. pvscan Command Examples in Linux
  7. login: command not found
  8. Unable to login with GUI on CentOS/RHEL 7
  9. resolvectl Command Examples in Linux
  10. How to enable SFTP Logging without chroot in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright