配置yum源
[root@localhost 桌面]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# mkdir ce
[root@localhost yum.repos.d]# vim ce.repo
[root@localhost yum.repos.d]# mount /dev/sr0 /mnt
[root@localhost yum.repos.d]# vim ce.repo配置文件:
[id]
name=ce
baseurl=file:///mnt
enable=1
gpgcheck=0
完成yum源:(可以下载)
eg:
[root@localhost yum.repos.d]# yum install httpd -y