Oracle Enterprise linux(OEL)官方yum源配置
发布时间:2019-03-22
1.Oracle Linux官方源网址
http://public-yum.oracle.com/
2.使用方法很简单,肯定是在你安装完OEL后(默认安装完OEL是不会自带源配置文件的)
进入/etc/yum.repos.d 目录,再下载你安装的OEL版本对应的配置文件即可
Oracle Linux 4, Update 6 or Newer
# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo
Oracle Linux 5
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
Oracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Oracle VM 2
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo
3.在下载完源配置文件后,还需要修改配置文件启用相对应的仓库,修改enable=0至enable=1
比如你安装的OEL版本为5.5,那则是修改
[ol5_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/5/base/x86_64/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
如果你还打算使用Oracle自己的Unbreakable Enterprise内核的话,则还需启用UEK,如下所示
[ol5_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
4.最后保存配置文件,更新一下系统安装需要的软件即可
附:
安装Oracle Database 11g之前不是需要进行很多配置嘛,如果想偷懒的话,可以安装oracle-rdbms-server-11gR2-preinstall RPM 软件包简化安装,具体可参考
http://www.oracle.com/technetwork/cn/articles/servers-storage-admin/ginnydbinstallonlinux6-1845247-zhs.html
参考:
http://koumm.blog.51cto.com/703525/1283867
http://www.ha97.com/4891.html
http://www.oracle.com/technetwork/cn/articles/servers-storage-admin/ginnydbinstallonlinux6-1845247-zhs.html
http://public-yum.oracle.com/
2.使用方法很简单,肯定是在你安装完OEL后(默认安装完OEL是不会自带源配置文件的)
进入/etc/yum.repos.d 目录,再下载你安装的OEL版本对应的配置文件即可
Oracle Linux 4, Update 6 or Newer
# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo
Oracle Linux 5
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
Oracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Oracle VM 2
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo
3.在下载完源配置文件后,还需要修改配置文件启用相对应的仓库,修改enable=0至enable=1
比如你安装的OEL版本为5.5,那则是修改
[ol5_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/5/base/x86_64/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
如果你还打算使用Oracle自己的Unbreakable Enterprise内核的话,则还需启用UEK,如下所示
[ol5_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
4.最后保存配置文件,更新一下系统安装需要的软件即可
附:
安装Oracle Database 11g之前不是需要进行很多配置嘛,如果想偷懒的话,可以安装oracle-rdbms-server-11gR2-preinstall RPM 软件包简化安装,具体可参考
http://www.oracle.com/technetwork/cn/articles/servers-storage-admin/ginnydbinstallonlinux6-1845247-zhs.html
参考:
http://koumm.blog.51cto.com/703525/1283867
http://www.ha97.com/4891.html
http://www.oracle.com/technetwork/cn/articles/servers-storage-admin/ginnydbinstallonlinux6-1845247-zhs.html