REHL8 /CENTOS8 yum 配置
[root@lu8db hgfs]# cat /etc/yum.repos.d/media.repo [InstallMedia-BaseOS] name=Red Hat Enterprise Linux 8 - BaseOS metadata_expire=-1 gpgcheck=1 enabled=1 baseurl=file:///mnt/cdrom/BaseOS/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [InstallMedia-AppStream] name=Red Hat Enterprise Linux 8 - AppStream metadata_expire=-1 gpgcheck=1 enabled=1 baseurl=file:///mnt/cdrom/AppStream/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
mount cdrom to /mnt/cdrom
/dev/cdrom /mnt/cdrom iso9660 defaults 0 0
yum clean all yum makecache # 查看仓库 yum repolist dnf -y install 软件包名 dnf -y remove 软件包名 dnf -y update 软件包名
Centos8 Yum
cd /etc/yum.repos.d/ rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo CentOS-Extras.repo curl -o CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo yum makecache
每天进步一点点,多思考,多总结
版权声明:本文为CNblog博主「zaituzhong」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。