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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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 run “find” command on current directory only and not on sub-directories
  2. dunstify Command Examples in Linux
  3. pvcreate error : Can’t open /dev/sdx exclusively. Mounted filesystem?
  4. How to change the interface name in CentOS/RHEL 8 using prefixdevname
  5. service Command Examples in Linux
  6. Audit rules to log reboot command executions in CentOS/RHEL
  7. How to disable Ctrl+Alt+Del causing system reboot in CentOS/RHEL 6
  8. How to grep with color output
  9. ipset: command not found
  10. Troubleshooting kdump Issues in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright