使用yum安裝oracle的包

aaqwsh發表於2011-06-19

在rhel上安裝oracle需要一些必備的包,如binutils compat-db compat-libstdc++-33 control-center gcc gcc-c++ glibc glibc-common等等。如果一個一個的裝,真的很麻煩,幸好有了yum 和oracle-validated:

1    配置yum public-yum-el5.repo:

[root@db56 yum.repos.d]# cat  public-yum-el5.repo
[el5_ga_base]
name=Enterprise Linux $releasever GA - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u1_base]
name=Enterprise Linux $releasever U1 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u2_base]
name=Enterprise Linux $releasever U2 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u3_base]
name=Enterprise Linux $releasever U3 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u4_base]
name=Enterprise Linux $releasever U4 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/4/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0

[el5_u5_base]
name=Enterprise Linux $releasever U5 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/5/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

[el5_addons]
name=Enterprise Linux $releasever - $basearch - addons
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

[el5_oracle_addons]
name=Enterprise Linux $releasever - $basearch - oracle_addons
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

2    yum install oracle-validated:

[root@db56 yum.repos.d]# yum install oracle-validated
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--&gt Running transaction check
---&gt Package oracle-validated.x86_64 0:1.0.0-22.el5 set to be updated
el5_addons/filelists                                                                                                                                      |  32 kB     00:00    
el5_oracle_addons/filelists                                                                                                                               | 3.1 kB     00:00    
el5_u5_base/filelists                                                                                                                                     | 3.0 MB     01:12    
--&gt Processing Dependency: libXp.so.6 for package: oracle-validated
--&gt Processing Dependency: /usr/lib/libodbccr.so for package: oracle-validated
--&gt Processing Dependency: unixODBC-devel for package: oracle-validated
--&gt Processing Dependency: /usr/lib/libaio.so for package: oracle-validated
--&gt Processing Dependency: libaio-devel for package: oracle-validated
--&gt Processing Dependency: libdb-4.2.so()(64bit) for package: oracle-validated
--&gt Running transaction check
---&gt Package compat-db.x86_64 0:4.2.52-5.1 set to be updated
---&gt Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
---&gt Package libaio-devel.i386 0:0.3.106-5 set to be updated
---&gt Package unixODBC-devel.i386 0:2.2.11-7.1 set to be updated
--&gt Finished Dependency Resolution

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/758322/viewspace-700213/,如需轉載,請註明出處,否則將追究法律責任。

相關文章