Mirroring
YUM repository mirroring
These directions will walk you through using the open source tool reposync to mirror your YUM repository.
- Ensure you've installed this repository on your system.
reposync
will use the YUM configuration in /etc/yum.repos.d/ for mirroring. - Install
reposync
andcreaterepo
:sudo yum install yum-utils createrepo
NOTE:reposync
on CentOS 5 is buggy. We strongly encourage users to consider upgrading theirreposync
to a newer version. - Create a directory for storing your repository data:
mkdir -p /path/to/repository
- Run
reposync
specifying the the repository ID and the output directory.reposync --repoid=gitlab_gitlab-ee --download_path=/path/to/repository
- Finally, you should use createrepo to regenerate the repository metadata:
createrepo -o /path/to/repository /path/to/repository
- Your YUM repository mirror is ready to use.
Questions? We're here to help! Email support@packagecloud.io