• 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

How to Re-Create the Yum Cache and/or Force a Fetch of the Package List of the Enabled Repositories

by admin

This post briefly outlines how it possible to re-create the yum cache, or said in another way, force a fetch of the cache data from the enabled yum repositories. The enabled yum repositories are the ones in the following file /etc/yum.conf or in the following folder /etc/yum.repos.d that have their “enabled” setting to “1”, e.g. :

[public_ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

Run the following command on the CentOS/RHEL Server in order to recreate the yum cache:

# yum makecache

It will re-download all the cache data from the enabled repositories.

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. Linux OS service ‘iscsid’
  2. module Command Examples in Linux
  3. lrunzip Command Examples in Linux
  4. bpftrace Command Examples in Linux
  5. How to Check the Size of the Yum Channels in Oracle Linux
  6. dstat: command not found
  7. How to configure the logging of failed login attempts for vsftpd
  8. “ntpq -pn” command returns with error “Name or service not known”
  9. How to resolve the error “-bash: xclock: command not found” in CentOS / RHEL
  10. CentOS / RHEL : How to find UUID of a device or filesystem

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright