
配置本地光盘yum源
[root@localhost ~]#cd /etc/yum.repos.d/ 要在此目录
[root@localhost yum.repos.d]# cat test.repo
[test]
name= base yum
baseurl=file:///mnt/cdrom
gpgkey=0
enabled=1
一般使用阿里云yum源
yum clean all 清除yum缓存
[root@localhost ~]# yum makecache #生成缓存
[root@localhost ~]# yum provides 软件名 查看文件属于哪个软件