Oracle Linux配置本地yum源

3.1 挂载Oracle Linux 6光盘(以root用户执行)

#mkdir -p /mnt/cdrom

#mount /dev/cdrom /mnt/cdrom

3.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.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 = oracle Enterprise Linux 6

baseurl=file:///mnt/cdrom/Server/

gpgcheck=0

enabled=1


你可能感兴趣的:(Oracle,RAC)