rhel 6.4 增加光盘为yum repo
版本
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.4 (Santiago)
Release: 6.4
Codename: Santiago
修改默认不检查gpg
=================
[root@testdb yum.repos.d]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=0
plugins=1
installonly_limit=3
新增文件
=======
[root@testdb yum.repos.d]# pwd
/etc/yum.repos.d
[root@testdb yum.repos.d]# cat cdrom.repo
[redhatyumcdrom]
name=cdrom
baseurl=file:///mnt/Server/
enabled=1
gpgcheck=0
[root@testdb yum.repos.d]#
挂载光盘到mnt
=============
mount /dev/cdrom /mnt
检查是否生效
===========
[root@testdb yum.repos.d]# yum list