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
时间: 2024-11-03 21:00:09