Mirroring

YUM repository mirroring

These directions will walk you through using the open source tool reposync to mirror your YUM repository.

  1. Ensure you've installed this repository on your system. reposync will use the YUM configuration in /etc/yum.repos.d/ for mirroring.
  2. Install reposync and createrepo:
    sudo yum install yum-utils createrepo
    NOTE: reposync on CentOS 5 is buggy. We strongly encourage users to consider upgrading their reposync to a newer version.
  3. Create a directory for storing your repository data:
    mkdir -p /path/to/repository
  4. Run reposync specifying the the repository ID and the output directory.
    reposync --repoid=varnishcache_varnish66 -p /path/to/repository
  5. Finally, you should use createrepo to regenerate the repository metadata:
    createrepo -o /path/to/repository /path/to/repository
  6. Your YUM repository mirror is ready to use.

Questions? We're here to help! Email support@packagecloud.io