1. Directory Structure
Create a directory for rpms. Segregate rpms by architecture, i386, i686, noarch, SRPMS, etc. Copy the rpms into the appropriate directories and run createrepo.Read more
mkdir -p myrepo/i386 myrepo/noarch myrepo/SRPMS
mv mybinrpm.i386.rpm myrepo/i386
createrepo myrepo
Create a groups file known as comps.xml like this: