De link
The important thing is to maintain regularly synchronized the local mirror with the master repository running every hour reposync and createrepo. It is important to note that the groups file is not downloaded by reposync. Use wget or curl to download it.
Eu não sei como usar o wget ou o curl para obter arquivos do RHN, mas aqui está outra maneira que deve funcionar:
reposync -p /home/user/reposync/all/ -r rhel-x86_64-workstation-6 -l
yum clean all
yum --disablerepo=* --enablerepo=rhel-x86_64-workstation-6 makecache
cp -f /var/cache/yum/x86_64/6Workstation/rhel-x86_64-workstation-6/*.gz /var/cache/yum/x86_64/6Workstation/rhel-x86_64-workstation-6/*.xml /home/user/reposync/all/rhel-x86-64/getPackage/repodata/
Note que 'yum clean all' é provavelmente excessivo. Eu acho que metadados limpos são suficientes, mas eu não verifiquei.