How2CentOS shows you how to add CentOS 5.6 to a local YUM Repository
NB! Please read creating a Local CentOS YUM repository on CentOS 5.x before implementing. Adding CentOS 5.6 to the YUM repository script Create the following additional directories for CentOS 5.6: # mkdir -pv /var/www/html/centos/5.6/{os,updates}/{i386,x86_64} Add the CentOS 5.6 repository to the bash script which will rsync your local YUM repository server with a CentOS 5.6Adding CentOS 5.6 to a local YUM Repository