一、将DVD光盘放入RedHat/CentOS6.X服务器/电脑光驱中
二、挂载DVD光驱到/mnt/cdrom
# mkdir -p /mnt/cdrom # mount -t iso9660 /dev/cdrom /mnt/cdrom/
三、修改yum配置:
# cd /etc/yum.repos.d/ # mkdir -p bak # mv *.repo bak/ # vi /etc/yum.repos.d/dvd.repo [DVD] name=CentOS6.6 baseurl=file:///mnt/cdrom gpgcheck=0 gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-CentOS-6 enabled=1
四、清理yum:
# yum clean all
五、更新源,安装软件:
# yum update
# yum makecache