• 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 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 Interview Questions – Linux Printing (CUPS)
  2. RHEL / CentOS : How to shrink LVM volume
  3. How to check failed or bad login attempts in Linux
  4. How to Create and Mount Btrfs Snapshots
  5. How To Configure SNMP Daemons: snmpd and snmptrapd on CentOS/RHEL 5,6 and 7
  6. How to exclude a file/directory from auditd rules
  7. How To Change Timezone for Oracle Grid Infrastructure
  8. How to resolve the error “-bash: xclock: command not found” in CentOS / RHEL
  9. Introduction to sed (Stream Editor) : Useful sed Command Examples
  10. How to make CentOS/RHEL 7 FIPS 140-2 compliant

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary