配置本地 yum 安装源

overview

1.使用 ftp 将OracleLinux-R5-U8-Server-x86_64-dvd.iso 上传到 /home 目录下。再使用 mount 命令挂载镜像。

mount/home/OracleLinux-R5-U8-Server-x86_64-dvd.iso /media -o loop

2.确认xx.iso已经在/media 下。

cd /media     ll

3.编辑yum配置文件:

vi /etc/yum.repos.d/oel-media.repo

[oel-media]

name= oel 5.8

baseurl=file:///media/Server

enabled=1

gpgcheck=0

4.清除yum缓存,使用yuminstall自动安装软件

yum clean all

yum install oracle-validated

FYI:

以下案例为使用oracle linux 自带的 oracle-validated-rpm 自动配置oracle linux的安装环境。

[root@lixora home]# ll

total 6884764

-rw-r--r-- 1 root root  801603584 Jun 28 06:39 10201_database_linux_x86_64.cpio

-rw-r--r-- 1 root root 3884036096 Jun 2807:06 OracleLinux-R5-U8-Server-x86_64-dvd.iso

-rw-r--r-- 1 root root 1307536871 Jun 2806:50 p10098816_112020_Linux-x86-64_1of7.zip

-rw-r--r-- 1 root root 1049912579 Jun 2806:49 p10098816_112020_Linux-x86-64_2of7.zip

挂载镜像

[root@lixora home]# mount/home/OracleLinux-R5-U8-Server-x86_64-dvd.iso /media -o loop

[root@lixora home]# cd /media

[root@lixora media]# ll

total 732

-rw-r--r-- 1 root root   5165 Feb 29 2012 blafdoc.css

drwxr-xr-x 3 root root   2048 Feb 29 2012 Cluster

drwxr-xr-x 3 root root   4096 Feb 29 2012 ClusterStorage

-rw-r--r-- 1 root root   6830 Feb 29 2012 EULA

-rw-r--r-- 1 root root   7041 Feb 29 2012 eula.en_US

-rw-r--r-- 1 root root   3334 Feb 29 2012 eula.py

-rw-r--r-- 1 root root  18390 Feb 29 2012 GPL

drwxr-xr-x 4 root root   2048 Feb 29 2012 images

drwxr-xr-x 2 root root   2048 Feb 29 2012 isolinux

-rw-r--r-- 1 root root   3547 Feb 29 2012 README-en

-rw-r--r-- 1 root root   7897 Feb 29 2012 README-en.html

-rw-r--r-- 1 root root  35456 Feb 29 2012 RELEASE-NOTES-en

-rw-r--r-- 1 root root  38444 Feb 29 2012 RELEASE-NOTES-en.html

-rw-r--r-- 1 root root   1397 Feb 29 2012 RPM-GPG-KEY

-rw-r--r-- 1 root root   1397 Feb 29 2012 RPM-GPG-KEY-oracle

drwxr-xr-x 4 root root 593920 Feb 29  2012 Server

-rw-r--r-- 1 root root    105Feb 29  2012 supportinfo

-r--r--r-- 1 root root   4436 Feb 29 2012 TRANS.TBL

drwxr-xr-x 3 root root   8192 Feb 29 2012 VT

[root@lixora media]# pwd

/media

[root@lixora media]# vi/etc/yum.repos.d/oel-media.repo

[oel-media]

name= oel 5.8

baseurl=file:///media/Server

enabled=1

gpgcheck=0

"/etc/yum.repos.d/oel-media.repo"[New] 6L, 77C written

确认无误

[root@lixora media]# more/etc/yum.repos.d/oel-media.repo

[oel-media]

name= oel 5.8

baseurl=file:///media/Server

enabled=1

gpgcheck=0

开始安装 oracle-validated-rpm

[root@lixora media]# yum clean all

Loaded plugins: rhnplugin, security

Cleaning up Everything

[root@lixora media]# yum installoracle-validated

Loaded plugins: rhnplugin, security

This system is not registered with ULN.

ULN support will be disabled.

oel-media                                               | 1.1 kB

00:00

oel-media/primary                                        | 1.4MB

00:00

oel-media

3298/3298

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package oracle-validated.x86_640:1.1.0-15.el5 set to be updated

oel-media/filelists                                      | 3.1MB

00:00

--> Processing Dependency: sysstat forpackage: oracle-validated

--> Processing Dependency:/usr/lib/libaio.so for package: oracle-

validated

--> Processing Dependency: glibc-headersfor package: oracle-validated

--> Processing Dependency:elfutils-libelf-devel for package: oracle-

validated

--> Processing Dependency:unixODBC-devel for package: oracle-

validated

--> Processing Dependency:/usr/lib64/libodbccr.so for package:

oracle-validated

--> Processing Dependency: gcc-c++ forpackage: oracle-validated

--> Processing Dependency: libaio-develfor package: oracle-validated

--> Processing Dependency: gcc forpackage: oracle-validated

--> Processing Dependency:/usr/lib/gcc/x86_64-redhat-

linux/4.1.1/libstdc++.a for package:oracle-validated

--> Processing Dependency:/usr/lib/libc.so for package: oracle-

validated

--> Processing Dependency:/usr/lib64/libaio.so for package: oracle-

validated

--> Processing Dependency:/usr/lib64/libc.so for package: oracle-

validated

--> Processing Dependency: /usr/lib/libodbccr.sofor package: oracle-

validated

--> Processing Dependency: libXp.so.6for package: oracle-validated

--> Running transaction check

---> Packageelfutils-libelf-devel.x86_64 0:0.137-3.el5 set to be

updated

--> Processing Dependency: elfutils-libelf-devel-static-x86_64=

0.137-3.el5 for package:elfutils-libelf-devel

---> Package gcc.x86_64 0:4.1.2-52.el5set to be updated

---> Package gcc-c++.x86_640:4.1.2-52.el5 set to be updated

---> Package glibc-devel.i386 0:2.5-81set to be updated

---> Package glibc-devel.x86_64 0:2.5-81set to be updated

---> Package glibc-headers.x86_640:2.5-81 set to be updated

--> Processing Dependency:kernel-headers >= 2.2.1 for package:

glibc-headers

--> Processing Dependency:kernel-headers for package: glibc-headers

---> Package libXp.i386 0:1.0.0-8.1.el5set to be updated

---> Package libaio-devel.i3860:0.3.106-5 set to be updated

---> Package libaio-devel.x86_640:0.3.106-5 set to be updated

---> Package libstdc++-devel.x86_640:4.1.2-52.el5 set to be updated

---> Package sysstat.x86_640:7.0.2-11.el5 set to be updated

---> Package unixODBC-devel.i3860:2.2.11-10.el5 set to be updated

---> Package unixODBC-devel.x86_640:2.2.11-10.el5 set to be updated

--> Running transaction check

---> Packageelfutils-libelf-devel-static.x86_64 0:0.137-3.el5 set to

be updated

---> Package kernel-headers.x86_640:2.6.18-308.el5 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package                         Arch      Version           Repository    Size

======================================================================

==========

Installing:

oracle-validated                x86_64    1.1.0-15.el5      oel-media  24 k

Installing for dependencies:

elfutils-libelf-devel           x86_64    0.137-3.el5       oel-media 24 k

elfutils-libelf-devel-static    x86_64   0.137-3.el5       oel-media 64 k

gcc                             x86_64    4.1.2-52.el5      oel-media  5.3 M

gcc-c++                         x86_64    4.1.2-52.el5      oel-media 3.8 M

glibc-devel                     i386      2.5-81            oel-media 2.0 M

glibc-devel                     x86_64    2.5-81            oel-media 2.4 M

glibc-headers                   x86_64    2.5-81            oel-media 596 k

kernel-headers                  x86_64    2.6.18-308.el5    oel-media 1.4 M

libXp                           i386      1.0.0-8.1.el5     oel-media 22 k

libaio-devel                    i386      0.3.106-5         oel-media 12 k

libaio-devel                    x86_64   0.3.106-5         oel-media 11 k

libstdc++-devel                 x86_64    4.1.2-52.el5      oel-media 2.8 M

sysstat                         x86_64    7.0.2-11.el5      oel-media 187 k

unixODBC-devel                  i386      2.2.11-10.el5     oel-media 38 k

unixODBC-devel                  x86_64    2.2.11-10.el5     oel-media 793 k

Transaction Summary

================================================================================

Install     16 Package(s)

Upgrade       0 Package(s)

Total download size: 20 M

Is this ok [y/N]: y

Downloading Packages:

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

Total                                           433MB/s |  20 MB

00:00

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Installing     :libstdc++-devel                         1/16

Installing     : sysstat                                              2/16

Installing     : libaio-devel                                         3/16

Installing     :unixODBC-devel                                      5/16

Installing     :kernel-headers                                      6/16

Installing     :glibc-headers                                        7/16

Installing     : glibc-devel                                         8/16

Installing     : glibc-devel                                          9/16

Installing     : libaio-devel                                        10/16

Installing     : libXp                                               11/16

Installing     : gcc                                                12/16

Installing     : gcc-c++                                              13/16

Installing     :elfutils-libelf-devel                               14/16

Installing     :oracle-validated                                    15/16

Installing     :elfutils-libelf-devel-static                        16/16

Installed:

oracle-validated.x86_64 0:1.1.0-15.el5

Dependency Installed:

elfutils-libelf-devel.x86_64 0:0.137-3.el5            elfutils-libelf-devel-static.x86_640:0.137-3.el5            gcc.x86_64 0:4.1.2-52.el5

gcc-c++.x86_64 0:4.1.2-52.el5                         glibc-devel.i386 0:2.5-81                                    glibc-devel.x86_64 0:2.5-81

glibc-headers.x86_64 0:2.5-81                         kernel-headers.x86_64 0:2.6.18-308.el5                       libXp.i3860:1.0.0-8.1.el5

libaio-devel.i386 0:0.3.106-5                         libaio-devel.x86_64 0:0.3.106-5                              libstdc++-devel.x86_64 0:4.1.2-52.el5

sysstat.x86_64 0:7.0.2-11.el5                         unixODBC-devel.i386 0:2.2.11-10.el5                          unixODBC-evel.x86_64 0:2.2.11-10.el5

Complete!

到此oracle-validate-rpm 已全部安装完,已经为我们做好了一切装备。

[root@lixora media]# id oracle

uid=54321(oracle) gid=54321(oinstall)groups=54321(oinstall),54322(dba)

[root@lixora media]# passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionaryword

Retype new UNIX password:

passwd: all authentication tokens updatedsuccessfully.

[root@lixora media]#

远程安装实施时,如何配置远程服务器的本地 yum 安装源的更多相关文章

  1. liveCD版: CD光盘映像,和liveDVD一样,唯一的区别就是该版本中包含的软件包会少一点,安装系统时使用 U 盘或者CD光盘进行安装。

    https://man.linuxde.net/download/CentOS/ CentOS,英文全称"Community Enterprise Operating System" ...

  2. 腾讯云服务器centos通过yum安装mysql数据库

    安装mysql有两种: 1-可以使用yum安装, 2-可以自己下载安装包安装mysql, 腾讯云的centos系统自带了yum,所以用yum安装方便点 安装步骤 1-查看yum源中是否有mysql y ...

  3. Linux 配置iso系统盘为本地yum源

    Linux配置iso系统盘为本地yum源 by:授客 QQ:1033553122   1.目的 安装软件时,经常会遇到包或类库的依赖性问题,为此,我们可以通过yum命令安装软件,尽量避免出现繁琐的软件 ...

  4. ubuntu 14.04 安装mysql,并配置远程连接和中文乱码

    1. 安装MySQL的jar root@computer-PowerEdge-T30:~# sudo apt-get install mysql-server mysql-client在本次安装中,根 ...

  5. centos7 配置 ftp 服务器(本地用户)

    2021-09-02 1. 安装 # 安装 vsftpd yum -y install vsftpd 2. 启动服务并添加到开机自启 # 启动 vsftpd systemctl start vsftp ...

  6. Centos 7.6配置nginx反向代理,直接yum安装

    一,实验介绍 利用三台centos7虚拟机搭建简单的nginx反向代理负载集群, 三台虚拟机地址及功能介绍 192.168.2.76    nginx负载均衡器 192.168.2.82    web ...

  7. 服务器 CentOS上yum安装Nginx服务

    一.更改yum源为网易的源加快速度 vi /etc/yum.repos.d/CentOS-Base.repo 更改内容如下 # CentOS-Base.repo # # This file uses ...

  8. 使用WinNTSetup安装win10时提示efi part有红叉(win10安装UEFI系统安装)

    1.装载ImDisk虚拟磁盘 2.格式化硬盘 *格式化时注意”创建新ESP分区 3.使用 WinNTSetup 选择win10安装程序 *1. “BOOTMGR PBR "后有感叹号不用管, ...

  9. 管理员技术(三): 配置静态网络地址、 使用yum软件源 、 升级Linux内核、查找并处理文件、查找并提取文件内容

    一. 配置静态网络地址 目标: 本例要求为虚拟机 server 配置以下静态地址参数: 1> 主机名:server0.example.com    2> IP地址:172.25.0.11  ...

随机推荐

  1. iOS--Swift开发中的单例设计模式

    最近在开发一个小的应用,遇到了一些Objective-c上面常用的单例模式,但是swift上面还是有一定区别的,反复倒来倒去发现不能按常理(正常的oc to swift的方式)出牌,因此搜索了一些帖子 ...

  2. webkit内核下的mouseup后mousemove自动触发问题及解决方法

    如题,就以chrome为代表举例说明遇到mousemove的问题. 为body分别绑定onmousedown.onmousemove.onmouseup,并为触发时打印至控制台.代码如下(同学不要忘记 ...

  3. ThinkPad E431/E531 ubuntu 14.04 安装无线网卡驱动

    ubuntu系统装好之后无限网卡驱动并不能用.须要自己下载无线网卡驱动.以下是最简单的方法: sudo apt-get install linux-headers-generic build-esse ...

  4. hibernate实体类型映射文件

    1.通过写hibernate映射文件.实体类型转换为数据库中的表 据实体类型而写的. 实体类型User.java package cn.wwh.www.hibernate.dd.property; i ...

  5. weblogic生产、开发模式互转

    生产模式与开发模式转换: 1.生产模式-->开发模式     将%DOMAIN_HOME%\config\config.xml文件中<production-mode-enabled> ...

  6. 深入浅出SQL Server 2008 分区函数和分区表

    原文:深入浅出SQL Server 2008 分区函数和分区表 当我们数据量比较大的时候,我们需要将大型表拆分为多个较小的表,则只访问部门数据的查询就可以更快的运行,基本原理就是,因为要扫描的数据变的 ...

  7. 淘宝code

    淘宝code 相信大家都听说过GitHub,也有很多人在用,但是GitHub毕竟在国外,速度不是很给力,而且安装过程也是很漫长.今天来给大家介绍一个国内的免费的开源项目平台,当然也是一个SVN版本控制 ...

  8. eclipse在使用git

    一些eclipse已经自带GIt该,不要安装. 假设,再想想安装.能够卸载GIT,卸载 不同eclipse卸载是不一样的: 1.在Eclipse中依次点击菜单"Help"-> ...

  9. SWAT—Samba WEB管理工具

    本文试验环境是RHEL5.2+samba-swat-3.0.28.Server的IP是192.168.120.241.   1. swat介绍 SWAT:The Samba WEB Administr ...

  10. requirejs的config及optimizer r.js配置

    1.怎么处理require.js这些不需要被合并的东西 所有appDir中的文件都会先copy到dir文件中,进行压缩,然后根据build.js中的配置进行相应的合并,包括img等:2.样式合并后原来 ...