Cara Re-Create yum cache pada repository CentOS/RHEL

Step by step :

  1. edit file /etc/yum.conf atau /etc/yum.repos.d
    # 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
  2. jalankan command ini
    # yum makecache

Di tulis oleh: