Home CentOS离线安装Oracle依赖
Post
Cancel

CentOS离线安装Oracle依赖

安装离线下载插件

1
[root@localhost honcur]# sudo yum install yum-plugin-downloadonly 

这个插件可以把依赖包下载到本地。

下载rpm包,保存在本地

1
2
3
4
[root@localhost ~]# cd /usr/local
[root@localhost local]# mkdir oralib
[root@localhost local]# cd oralib
[root@localhost local]# yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel glibc-static --downloadonly --downloaddir=. 

执行命令后,进入/usr/local/oralib可以看到依赖包已经全部下载在文件夹内。

安装Oracle需要的依赖包

把依赖包oralib.tar放入/usr/local文件夹下,然后打开terminal

1
2
3
4
5
6
7
8
9
10
# 切换到root
[honcur@localhost ~]$ su root 
# 切换到目录
[root@localhost honcur]# cd /usr/local 
# 解压依赖包
[root@localhost local]# tar zxvf oralib.tar 
# 切换到oralib目录
[root@localhost local]# cd oralib/ 
# 安装所有依赖,然后根据提示输入‘Y’,敲回车
[root@localhost oralib]# yum localinstall *.rpm –nogpgcheck 
This post is licensed under CC BY 4.0 by the author.