I have an EL5 machine. On this host I would like to mirror a Puppet repository for EL6 rpms. How can I mirror an EL6 or Fedora repository on an EL5 host?
I am using
reposync because I only need the newest packages available on the repo, not the entire repository.
My .repo file contains this:
# cat puppetlabs.repo.el6 [main] # Override default releasever, per `man yum.conf` releasever=6 # Try distroverpkg instead? distroverpkg=6 [puppetlabs-products] name=Puppet Labs Products El 6 - $basearch baseurl=http://yum.puppetlabs.com/el/6/products/$basearch gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs enabled=0=1 gpgcheck=1
My command line is as follows. As you can see,
reposync is affixing 'el5' to the URL when I need it to say 'el6'.
# lsb_release -r Release: 5.10 # reposync --newest-only --repoid=puppetlabs-products --config=puppetlabs.repo.el6 --urls http://yum.puppetlabs.com/el/6/products/x86_64/facter-1.6.6-1.el5.noarch.rpm http://yum.puppetlabs.com/el/6/products/x86_64/facter-2.0.1-1.el5.x86_64.rpm http://yum.puppetlabs.com/el/6/products/x86_64/hiera-1.3.2-1.el5.noarch.rpm