1挂载OracleLinux6光盘(以root用户执行)
#mkdir-p/mnt/cdrom
#mount/dev/cdrom/mnt/cdrom
2创建local.repo文件(以root用户执行)
#vi/etc/yum.repos.d/local.repo
[HighAvailability] name=HighAvailability baseurl=file:///mnt/cdrom/HighAvailability enabled=1 gpgcheck=0 [LoadBalancer] name=LoadBalancer baseurl=file:///mnt/cdrom/LoadBalancer enabled=1 gpgcheck=0 [Server] name=Server baseurl=file:///mnt/cdrom/Server enabled=1 gpgcheck=0 |
3修改public-yum-ol6.repo文件配置(以root用户执行)
#mv/etc/yum.repos.d/public-yum-ol6.repo/etc/yum.repos.d/public-yum-ol6.repo_bak
#vi/etc/yum.repos.d/public-yum-ol6.repo
[oel6_local] name=oracleEnterpriseLinux6 baseurl=file:///mnt/cdrom/Server/ gpgcheck=0 enabled=1 |