oracle liunx6配置本地yum

      有时候,我们的环境不能上网,在安装oracle软件之前,总是要安装一些rpm包,这些rpm依赖比较麻烦,这个时候如果配置一个本地yum就能轻松的解决了。oracle liunx也提供了自己的yum,但是这个yum要上网的,暂时没办法在无网络的环境下用。


    步骤一:创建相关路径

[root@oel1 Desktop]# 
[root@oel1 Desktop]# cd /mnt
[root@oel1 Desktop]# ls
[root@oel1 Desktop]# mkdir cdrom

      这个cdrom就是我们本地Yum的目录,因为以后可能还要用到光盘,我直接把光盘里面的内容复制进cdrom了

[root@oel1 cdrom]# ls
EFI               Packages                      ResilientStorage
EULA              README-en                     RPM-GPG-KEY
eula.en_US        README-en.html                RPM-GPG-KEY-oracle
eula.py           RELEASE-NOTES-en              ScalableFileSystem
GPL               RELEASE-NOTES-en.html         Server
HighAvailability  RELEASE-NOTES-x86_64-en       supportinfo
images            RELEASE-NOTES-x86_64-en.html  TRANS.TBL
isolinux          RELEASE-NOTES-x86-en          UEK2
LoadBalancer      RELEASE-NOTES-x86-en.html
media.repo        repodata
[root@oel1 cdrom]# pwd
/mnt/cdrom
[root@oel1 cdrom]# 

      步骤二:修改yum配置文件

[root@oel1 yum.repos.d]# cat public-yum-ol6.repo #如果在oracle liunx5里面 没有这个文件,可以随意建repo后缀的文件
[base]
name=iso
baseurl=file:///mnt/cdrom
gpgcheck=1
enabled=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-oracle
[root@oel1 yum.repos.d]# pwd
/etc/yum.repos.d
[root@oel1 yum.repos.d]# 

      步骤三:验证

[root@oel1 yum.repos.d]# yum install -y binutils*
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package binutils-devel-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Nothing to do
[root@oel1 yum.repos.d]# 

  这样就配置好了。

  如果你是OEL6.3以上的版本,你安装ORACLE有福了。

[root@oel yum.repos.d]# yum install oracle-rdbms-server-11gR2-preinstall
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-7.el6 will be installed
--> Processing Dependency: glibc-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: libstdc++-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: gcc for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: gcc-c++ for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: cpp = 4.4.7-3.el6 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-3.el6.x86_64
---> Package gcc-c++.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-3.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.107.el6 for package: glibc-devel-2.12-1.107.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.107.el6.x86_64
---> Package ksh.x86_64 0:20100621-19.el6 will be installed
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-3.el6 will be installed
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-3.el6 will be installed
---> Package glibc-headers.x86_64 0:2.12-1.107.el6 will be installed
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                                Arch     Version           Repository
                                                                           Size
================================================================================
Installing:
 oracle-rdbms-server-11gR2-preinstall   x86_64   1.0-7.el6         base    15 k
Installing for dependencies:
 cloog-ppl                              x86_64   0.15.7-1.2.el6    base    93 k
 cpp                                    x86_64   4.4.7-3.el6       base   3.7 M
 gcc                                    x86_64   4.4.7-3.el6       base    10 M
 gcc-c++                                x86_64   4.4.7-3.el6       base   4.7 M
 glibc-devel                            x86_64   2.12-1.107.el6    base   973 k
 glibc-headers                          x86_64   2.12-1.107.el6    base   604 k
 ksh                                    x86_64   20100621-19.el6   base   686 k
 libaio-devel                           x86_64   0.3.107-10.el6    base    13 k
 libstdc++-devel                        x86_64   4.4.7-3.el6       base   1.6 M
 mpfr                                   x86_64   2.4.1-6.el6       base   156 k
 ppl                                    x86_64   0.10.2-11.el6     base   1.3 M

Transaction Summary
================================================================================
Install      12 Package(s)

Total download size: 24 M
Installed size: 58 M
Is this ok [y/N]: Y
Downloading Packages:
--------------------------------------------------------------------------------
Total                                            42 MB/s |  24 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libstdc++-devel-4.4.7-3.el6.x86_64                          1/12 
  Installing : mpfr-2.4.1-6.el6.x86_64                                     2/12 
  Installing : cpp-4.4.7-3.el6.x86_64                                      3/12 
  Installing : glibc-headers-2.12-1.107.el6.x86_64                         4/12 
  Installing : glibc-devel-2.12-1.107.el6.x86_64                           5/12 
  Installing : ppl-0.10.2-11.el6.x86_64                                    6/12 
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                             7/12 
  Installing : gcc-4.4.7-3.el6.x86_64                                      8/12 
  Installing : gcc-c++-4.4.7-3.el6.x86_64                                  9/12 
  Installing : ksh-20100621-19.el6.x86_64                                 10/12 
  Installing : libaio-devel-0.3.107-10.el6.x86_64                         11/12 
  Installing : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64      12/12 
  Verifying  : glibc-devel-2.12-1.107.el6.x86_64                           1/12 
  Verifying  : gcc-4.4.7-3.el6.x86_64                                      2/12 
  Verifying  : libaio-devel-0.3.107-10.el6.x86_64                          3/12 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                     4/12 
  Verifying  : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64       5/12 
  Verifying  : gcc-c++-4.4.7-3.el6.x86_64                                  6/12 
  Verifying  : cpp-4.4.7-3.el6.x86_64                                      7/12 
  Verifying  : libstdc++-devel-4.4.7-3.el6.x86_64                          8/12 
  Verifying  : ksh-20100621-19.el6.x86_64                                  9/12 
  Verifying  : ppl-0.10.2-11.el6.x86_64                                   10/12 
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                            11/12 
  Verifying  : glibc-headers-2.12-1.107.el6.x86_64                        12/12 

Installed:
  oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-7.el6                       

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6      cpp.x86_64 0:4.4.7-3.el6               
  gcc.x86_64 0:4.4.7-3.el6               gcc-c++.x86_64 0:4.4.7-3.el6           
  glibc-devel.x86_64 0:2.12-1.107.el6    glibc-headers.x86_64 0:2.12-1.107.el6  
  ksh.x86_64 0:20100621-19.el6           libaio-devel.x86_64 0:0.3.107-10.el6   
  libstdc++-devel.x86_64 0:4.4.7-3.el6   mpfr.x86_64 0:2.4.1-6.el6              
  ppl.x86_64 0:0.10.2-11.el6            

Complete!
[root@oel yum.repos.d]# 
   这样Oracle的依赖rpm就安装完毕了,oracle系统用户也创建好了,至于其他系统参数文件你自己看吧!!!
  

 版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

你可能感兴趣的:(oracle杂项,oracle安装)