标签:redhat yum redhat7 redhat7.3
1、创建yum源
# yum-config-manager --add-repo=file:///mnt/cdrom/
Loaded plugins: langpacks, product-id
adding repo from: file:///mnt/cdrom/
[mnt_cdrom_]
name=added from: file:///mnt/cdrom/
baseurl=file:///mnt/cdrom/
enabled=1
2、编辑yum文件,添加gpgcheck=0
# vim /etc/yum.repos.d/mnt_cdrom_.repo
[mnt_cdrom_]
name=added from: file:///mnt/cdrom/
baseurl=file:///mnt/cdrom/
enabled=1
gpgcheck=0
3、yum管理
# yum clean all
# yum repolist
# yum list
本文出自 “风之谷” 博客,请务必保留此出处http://chenchunjia.blog.51cto.com/1878790/1933456
标签:redhat yum redhat7 redhat7.3
原文地址:http://chenchunjia.blog.51cto.com/1878790/1933456