reposync command examples
$reposync – synchronize yum repositories to a local directory
Sync all packages from the ‘updates’ repo to the current directory:
#reposync --repoid=updates
Sync only the newest packages from the ‘updates’ repo to the current directory:
#reposync -n --repoid=updates
Sync packages from the ‘updates’ and ‘extras’ repos to the current directory:
#reposync --repoid=updates --repoid=extras
Sync all packages from the ‘updates’ repo to the repos directory:
#reposync -p repos --repoid=updates
Sync all packages from the ‘updates’ repo to the repos directory excluding x86_64 arch. Edit /etc/yum.conf adding option exclude=*.x86_64. Then:
#reposync -p repos --repoid=updates