标签:follow aliyun package epo local x86 enable dia str
Redhat8.0系统/etc/yum.repos.d/local.repo
echo ‘[BaseOS]‘ >> /etc/yum.repos.d/local.repo
echo ‘name=BaseOS‘ >> /etc/yum.repos.d/local.repo
echo ‘baseurl=file:///mnt/BaseOS‘ >> /etc/yum.repos.d/local.repo
echo ‘gpgcheck=0‘ >> /etc/yum.repos.d/local.repo
echo ‘gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release‘ >> /etc/yum.repos.d/local.repo
echo ‘enabled=1‘ >> /etc/yum.repos.d/local.repo
echo -n
echo ‘[AppStream]‘ >> /etc/yum.repos.d/local.repo
echo ‘name=AppStream‘ >> /etc/yum.repos.d/local.repo
echo ‘baseurl=file:///mnt/AppStream‘ >> /etc/yum.repos.d/local.repo
echo ‘enabled=1‘ >> /etc/yum.repos.d/local.repo
echo ‘gpgcheck=0‘ >> /etc/yum.repos.d/local.repo
echo ‘gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta‘ >> /etc/yum.repos.d/local.repo
yum repolist
标签:follow aliyun package epo local x86 enable dia str
原文地址:https://blog.51cto.com/10223750/2451149