Red Hat Enterprise Linux 7.5安装盘内容做本地YUM源

mkdir -p /root/soft/RHEL
cp -r /run/media/root/RHEL/. /root/soft/RH安装盘内容做本地YUM源EL
vim /etc/yum.repos.d/cdrom.repo
[rhel-media]
name=Red Hat Enterprise Linux 7.5
baseurl=file:///root/soft/RHEL
enabled=1
gpgcheck=1
gpgkey=file:///root/soft/RHEL/RPM-GPG-KEY-redhat-release
:wq!
yum clean all
yum makecache

 

你可能感兴趣的:(Red Hat Enterprise Linux 7.5安装盘内容做本地YUM源)