yum切到光盘源

挂载光盘

mkdir /mnt/cdrom

mount -o ro /dev/cdrom /mnt/cdrom

修改yum配置

vi /etc/yum.repos.d/server.repo

[server]
name=server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=0
测试yum
yum clean
yum list

posted on 2013-10-10 15:30  清风斜阳  阅读(135)  评论(0编辑  收藏  举报

导航