CentOS 添加 Oracle YUM 源

最新文章:Virson's Blog

文章来自:Oracle 官方 YUM 源

Introduction

The Oracle public yum server offers a free and convenient way to install the latest Oracle Linux packages as well as packages from the Oracle VM installation media via a yum client.

You can download the full Oracle Linux and Oracle VM installation media via edelivery.oracle.com/linux. To stay current on errata updates, you may wish to subscribe to the Oracle Linux errata mailing list.

This yum server is offered without support of any kind. If you require support, please consider purchasing Oracle Linux Support via the online store, or via your sales representative.

Getting Started

  1. Download and Install Oracle Linux
  2. Download and copy the appropriate yum configuration file in place, by running the following commands as root:

    Oracle Linux 7
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-ol7.repo
    
    Oracle Linux 6
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-ol6.repo
    
    Oracle Linux 5
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-el5.repo
    
    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 VM 2
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-ovm2.repo
    
  3. Enable the appropriate repository by editing the yum configuration file

    • Open the yum configuration file in a text editor
    • Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
    • Change enabled=0 to enabled=1
  4. Begin using yum, for example:

    yum list

    yum install firefox

You may be prompted to confirm the import of the Oracle OSS Group GPG key.

Frequently Asked Questions

  1. Where can I learn more about Oracle Linux?
  2. Where can I learn more about Oracle Linux Support?
  3. Where can I learn more about Oracle VM?
  4. Where can I find the source code for these binaries?
  5. Where can I get help getting this yum repository to work?
  6. Where can I learn more about yum?
  7. How can I be notified of Oracle Linux Errata?
  8. How can I use public-yum to update Oracle VM 3 Server?
  9. How can I convert an RHEL or RHEL-compatible system to Oracle Linux using public-yum?

Where can I learn more about Oracle Linux?

A: You can read a summary of features and specifications here. Additional technical information about Oracle Linux is available on OTN's Linux Technology Center.

Where can I learn more about Oracle Linux Support?

A: You can read more about Oracle Linux Support at oracle.com/linux, For white papers, data sheets, FAQs and other technical information, see the Linux Technology Center

Where can I learn more about Oracle VM?

A: You can read more about Oracle VM here. For technical information about Oracle VM, see the Oracle VM product page on OTN

Where can I find the source code for these binaries?

A: This yum server offers source packages as well as binary packages. We also provide the source packages for Oracle Linux 4Oracle Linux 5Oracle Linux 6 and Oracle VM on oss.oracle.com, Oracle's portal for all of its free and open source software contributions.

Where can I get help getting this yum repository to work?

A: This yum server is provided for free and without support. You may use the Oracle Technology Network Linux Forum, where other users are ready and willing to help.

Where can I learn more about yum?

A: There are several resources available on the the Web. Here is an overview of basic yum commands

How can I be notified of Oracle Linux Errata?

A: To subscribe to Oracle Linux errata notifications via email, go here. You can also stay on top of Oracle Linux errata via Twitter: @orcl_uln

How can I use public-yum to update Oracle VM 3 Server?

A: To update Oracle VM Server to 3.2.x using public-yum use http://public-yum.oracle.com/repo/OracleVM/OVM3/latest/x86_64/ as YUM Base URL and http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 as YUM GPG Key in Oracle VM Manager. For details please refer to Oracle VM Installation and Upgrade Guide for Release 3.2

To upgrade from Oracle VM Server 3.2 or 3.1 to Oracle VM Server 3.3, please refer to Oracle VM Installation and Upgrade Guide for Release 3.3 for detailed instructionss, and please do not use public-yum directly.

To update Oracle VM Server 3.3 to the latest 3.3.x using public-yum use http://public-yum.oracle.com/repo/OracleVM/OVM3/3x_latest/x86_64/ as YUM Base URL and http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 as YUM GPG Key in Oracle VM Manager. For details please refer to Oracle VM Installation and Upgrade Guide for Release 3.3.

 

How can I convert an RHEL or RHEL-compatible system to Oracle Linux using public-yum?

A: Download and verify the Oracle Linux GPG Key that best matches your RHEL-compatible release and then follow the "Getting Started" instructions above.

Red Hat Enterprise Linux 4, Update 6 or Compatible
# wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el4 -O /usr/share/rhn/RPM-GPG-KEY-oracle
# gpg --quiet --with-fingerprint /usr/share/rhn/RPM-GPG-KEY-oracle
pub  1024D/B38A8516 2006-09-05 Oracle OSS group (Open Source Software group) <build@oss.oracle.com>
     Key fingerprint = 1122 A29A B257 825F 322C  234E 2E2B CDBC B38A 8516
sub  2048g/0042D4F4 2006-09-05 [expires: 2011-09-04]
Red Hat Enterprise Linux 5 or Compatible
# wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
# gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
pub  1024D/1E5E0159 2007-05-18 Oracle OSS group (Open Source Software group) <build@oss.oracle.com>
      Key fingerprint = 99FD 2766 28EE DECB 5E5A  F5F8 66CE D3DE 1E5E 0159
sub  1024g/D303656F 2007-05-18 [expires: 2015-05-16]      
Red Hat Enterprise Linux 6 or Compatible
# wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
pub  2048R/EC551F03 2010-07-01 Oracle OSS group (Open Source Software group) <build@oss.oracle.com>
      Key fingerprint = 4214 4123 FECF C55B 9086  313D 72F9 7B74 EC55 1F03

转载于:https://www.cnblogs.com/mawanglin2008/p/3906196.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CentOS 7上使用yum安装Oracle数据库是可行的。以下是一些步骤: 1. 首先,确保你已经安装了CentOS 7,并且具备root权限。 2. 在Oracle官方网站上下载适用于LinuxOracle数据库安装文件。选择适合你系统的版本,并确保你已经接受了相关许可协议。 3. 将下载的安装文件上传到CentOS 7服务器上的一个目录中,例如`/tmp`。 4. 打开终端,使用root权限登录到CentOS 7服务器。 5. 安装依赖软件包。运行以下命令: ``` yum install -y oracle-database-preinstall-19c ``` 6. 创建一个新的目录来存储Oracle数据库文件。运行以下命令: ``` mkdir /opt/oracle chown oracle:oinstall /opt/oracle ``` 7. 切换到oracle用户。运行以下命令: ``` su - oracle ``` 8. 解压缩Oracle数据库安装文件。运行以下命令: ``` unzip /tmp/<安装文件名>.zip ``` 9. 运行安装程序。运行以下命令: ``` cd /tmp/<解压缩后的目录> ./runInstaller ``` 10. 按照安装向导的指示进行操作。在安装过程中,你需要提供一些配置信息,如数据库名称、密码等。 11. 安装完成后,运行配置助手。运行以下命令: ``` /opt/oracle/product/<版本号>/dbhome_1/root.sh ``` 12. 配置Oracle数据库实例。运行以下命令: ``` dbca ``` 13. 按照向导的指示进行操作,创建一个新的数据库实例。 完成上述步骤后,你应该成功安装了Oracle数据库。请注意,这只是一个简单的概述,实际安装过程可能会有所不同。建议在安装前参考Oracle官方文档以获取更详细的指导。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值