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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to re-create the yum cache (force a fetch of the cache data) from enabled repositories in CentOS/RHEL

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. :

# vi /etc/yum.repos.d/test.repo
[test_repo]
name=Test Repo
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 machine :

# 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. How to mount an iso file in Linux
  2. MySQL Fails to Start Using systemctl On systemd Linux Distributions
  3. “The requested URL returned error: 403 Forbidden” – yum update error
  4. CentOS / RHEL 5 : How to disable device mapper multipath (dm-multipath)
  5. lvdisplay error: “Failed to create directory /var/lock/lvm. File-based locking initilisation failed.”
  6. CentOS / RHEL 7 : How to open the Firewall port for Samba server using FirewallD
  7. How to backup Linux OS using “dd” Command
  8. How To Add New Disk to An Existing Diskgroup on RAC Cluster or Standalone ASM Configuration
  9. How to increase swap space on Linux
  10. CentOS / RHEL 7 : How to Reset root password

You May Also Like

Primary Sidebar

Recent Posts

  • Basics of client connectivity in Oracle Data Guard configuration
  • ORA-354 ORA-353 and ORA-312: Possible corruption in Online Redo Log File Members in a Redo Log Group
  • How to relocate the redo log files to a different location on disk
  • Oracle Database: Redo log operations (Add/Drop/Change Location)
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary