mkdir /mnt/cdrom
mount /dev/hdc /media
cd /media/CentOS
rpm –ivh createrepo-0.4.4-2.noarch.rpm
cd /media/CentOS
createrepo .
创建客户端yum文件
cd /etc/yum.repos.d
mkdir backup
mv *.repo ./backup
vi cdrom.repo
name=Mycentos
baseurl=file:///media/CentOS
enabled=1
gpgcheck=0