製作本地yum源
cd /etc/yum.repos.d/ ls mv CentOS-Base.repo ../
掛載光盤
mount /dev/cdrom /mnt/
ls /mnt/
編輯Centos-Media.repo
vi Centos-Media.repo name=dvd baseurl=file:///mnt/ gpgcheck=0 enabled=1
製作本地yum源
cd /etc/yum.repos.d/ ls mv CentOS-Base.repo ../
掛載光盤
mount /dev/cdrom /mnt/
ls /mnt/
編輯Centos-Media.repo
vi Centos-Media.repo name=dvd baseurl=file:///mnt/ gpgcheck=0 enabled=1