首页 > 数据库 >Oracle Linux Public Yum Server

Oracle Linux Public Yum Server

时间:2022-12-27 12:01:15浏览次数:61  
标签:VM Server yum Linux Oracle Yum Where public

1.先将光盘挂载到 /mnt下面。
#mount -t auto -o ro /dev/cdrom /mnt

2.在 /etc/yum.repos.d/ 新建 public-yum-el5.repo
#mkdir public-yum-el5.repo

3.public-yum-el5.repo 文件中他删除了,改成下面这个

[el5_u5_base]
name=Enterprise Linux $releasever Update 5 installation media copy ($basearch)
baseurl=file:///mnt/Server #指定rpm包所在的目录
gpgkey=file:///mnt/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1 # 注意要为 1

4.重启yum服务
service yum-updatesd restart

----------------------------------------------------------------------------- 

用网上的资源

​http://public-yum.oracle.com/​

 

Public Yum Server

Last updated: 22 March, 2012

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 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
  1. 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​
  1. 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?​

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 4​​​, ​​Oracle Linux 5​​​, ​​Oracle 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 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 ​​Updating and Upgrading Oracle VM Servers ​​in the Oracle VM User's Guide.



标签:VM,Server,yum,Linux,Oracle,Yum,Where,public
From: https://blog.51cto.com/u_15116285/5971909

相关文章

  • Kubernetes基础(kube-apiserver?kube-controller-manager?kube-scheduler?kubelet?kube-pro
    一、kube-apiserverAPIServer提供了资源对象的唯一操作入口,其它所有组件都必须通过它提供的API来操作资源数据。只有APIServer会与etcd进行通信,其它模块都必须通......
  • ef6不支持sqlserver 2008的offset语句分页解决
    一、问题项目中如果使用了EF6,数据库是2008,而分页会收到类似如下的错误提示:{"Depth":0,"ClassName":"","Message":"Incorrectsyntaxnear'OFFSET'.\r\nIn......
  • reposync与createrepo创建离线yum源的方法
    背景昨天晚上进行了在线升级银河麒麟V10SP2的audit和mate-indicator的rpm包今天想了下,如果机器无法上网.必须得在公司内部搭建一套离线的rpm源进行处理想了下还是使用......
  • Sql Server DDL 审计触发器
      SqlServer触发器,记录数据库中DDL操作记录,用于数据库结构变更审计。  1、创建一张table,用于保存DDL操作记录:USE[DBNAME]GOCREATETABLE[dbo].[DatabaseLo......
  • SQl Server——流程控制语句
     IF...ELSE语句:条件处理语句IFBoolean_expression{sql_statement|statement_block}ELSE{sql_statement|statement_block}需求:查询成绩表sc编号为801,学科为01这门课程所有......
  • SQL Server——自动化功能
    不管是任何地方,数据备份都是很重要的一个环节,需要定时对数据库指定数据备份,为它设计一个备份的策略。但是如果指定某个人定时定点的进行备份这是很麻烦的,这时我们就可以使用......
  • SQL Server——触发器
    什么是触发器?触发器,是一种特殊类型的​​存储过程​​,它在指定的表中的数据发生变化时自动生效。经常通过触发器来强制实现不同表中的逻辑相关数据的引用完整性或一致性。触......
  • SQL Server—分离和附加数据库
    目录 ​​一、分离数据库​​​​二、附加数据库​​​​总结​​一、分离数据库什么是分离数据库?指将数据库从SQLServer的实例中删除,使它不在被SQLServer管理和使用,但不......
  • SQL Server——备份与恢复数据库
    为什么要进行备份?不管是任何系统都不可避免的发生一些故障、错误,而为了防止数据丢失找不到的情况,防患于未然,养成备份的好习惯是很有必要的。可以根据自己的实际情况采取具体......
  • SQL server的事务锁--概念篇
    在上一篇的SQL事务中我讲到了”事务是恢复和并发控制的基本单位“,但它究竟怎么来控制并发这个过程呢?这就要从事务中的锁这一概念说起。 一、概念在我看来,锁,就是一种手段,在......