• 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. smbget: command not found
  2. “aws workmail” Command Examples
  3. scsi_id Command Examples in Linux
  4. viewnior: command not found
  5. setxkbmap: command not found
  6. tvservice: command not found
  7. How to set up the htaccess File on Apache on CentOS/RHEL
  8. rc-update Command Examples in Linux
  9. pacman4console Command Examples in Linux
  10. “docker swarm” Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright