Centos5.5 本地YUM源

添加光驱

mkdir /mnt/cdrom

mount /dev/cdrom /mnt/cdrom

 

mkdir /etc/yum.repos.d/bak

mv  /etc/yum.repos.d/*   /etc/yum.repos.d/bak

 

vim /etc/yum.repos.d/CentOS-Base.repo

 

[base]
name=Server
baseurl=file:///mnt/cdrom
gpgcheck=0
enabled=1

 

yum clean all

yum list all

你可能感兴趣的:(Centos5.5 本地YUM源)