I'm having trouble with mrepo on a RHEL 6 system, trying to mirror a RHEL 5 repo.
Running mrepo -uvvvv will update all the packages but it won't create the repdata directory. You have to specify -s sha (or --checksum sha) since yum on RHEL 5 doesn't use the sha256 that later versions do.
This is my mrepo.conf file
[main]
srcdir = /opt/mrepo
wwwdir = /var/www/mrepo
confdir = /etc/mrepo.conf.d
arch = i386 x86_64
mailto = root@localhost
smtp-server = localhost
rhnlogin = un:pw
rhnget-download-all = yes
[5Server]
name = Red Hat Enterprise Server $release ($arch)
release = 5
arch = x86_64
metadata = repomd
updates = rhns:///rhel-$arch-server-$release
createrepo-options = -s sha
According to the documents, I'm supposed to be able to use createrepo-options to pass options to the createrepo command. However when I run the mrepo command I get the following snippet
Setting option arch in section [6Server] to: x86_64
5Server-x86_64: Updating Red Hat Enterprise Server 5 (x86_64)
5Server-x86_64: Mirror packages from -s to /opt/mrepo/5Server-x86_64/createrepo-options Ignoring mirror action for type
5Server-x86_64: Mirror packages from sha to /opt/mrepo/5Server-x86_64/createrepo-options Ignoring mirror action for type
5Server-x86_64: Mirror packages from rhns:///rhel-x86_64-server-5 to /opt/mrepo/5Server-x86_64/updates
I have no idea where it's getting "Mirror option type" from.
Any suggestions would be gratefully received and tried (except rm -rf!).
I looked into reposync but that will only work with the same revision of RHEL. You can't use RHEL 6 and download RHEL 5 with it.