Centos 5.4制作本地yum源

制作本地YUM源
mkdir /mnt/cdrom
mount /dev/hdc /media
cd /media/CentOS
rpm �Civh 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
[Mycentos]
name=Mycentos
baseurl=file:///media/CentOS
enabled=1
gpgcheck=0

你可能感兴趣的:(centos,职场,yum,制作,休闲)