This program has two parts, the executable script and the config file, the shell script get download informations from config file and use rsync to make download.
The config file can be locate in /etc/sysconfig/yum-repo-sync, the file is very well comented.
The config file is pre-configured with repository for Fedora Core 3, 4, 5 and 6 but disable per default, to enable edit the config file and change the line ENABLE_n from false to true.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Extract files
tar -xzvf yum-repo-sync-1.1.tar.gz
Change to directory
cd yum-repo-sync-1.1
Run make command
make
To enable auto download make a synlink in the diretoryo /etc/cron.daily/
ln -s /usr/bin/yum-repo-sync /etc/cron.daily/yum-repo-sync
Only install package
rpm -ivh yum-repo-sync-1.1-1.noarch.rpm
Use rpmbuild to rebuild the source rpm
rpmbuild --rebuild yum-repo-sync-1.1-1.src.rpm
To rebuild from tar.gz use command below
rpmbuild -ta yum-repo-sync-1.1.tar.gz
yum-repo-sync-1.1.tar.gz
yum-repo-sync-1.1.noarch.rpm
yum-repo-sync-1.1-1.src.rpm