配置yum源
[local] //软件操作类型
name=1 //名字
baseurl=file:///soft //引用本地路径
enabled=1 //是否启用
gpgcheck=0 //检查权威性
例:
[root@rhel79img yum.repos.d]# cat rhel.repo
[rhel]
name=rhel
baseurl=file:///mnt
enabled=1
gpgcheck=0
###################
yum list
yum makecahe
yum clean all