码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 64bit yum同时安装32,,64位rpm包

时间:2015-08-20 15:36:06      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:yum

在安装Oracle数据库的时候,很多包是同时需要32位版本和64位版本的rpm包的

通过yum命令进行安装很方便,但是默认情况下只会安装64位的rpm包

我们可以通过下面的方法进行安装32位的包:

1,修改yum.conf配置文件,使yum命令同时安装32,64位的rpm包

echo "multilib_policy=all" >>/etc/yum.conf

[root@smi-zscbilling01 etc]# yum install unixODBC-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unixODBC-devel.i686 0:2.2.14-12.el6_3 will be installed
---> Package unixODBC-devel.x86_64 0:2.2.14-12.el6_3 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================================
 Package                                           Arch                                      Version                                              Repository                                   Size
====================================================================================================================================================================================================
Installing:
 unixODBC-devel                                    i686                                      2.2.14-12.el6_3                                      c6-media                                     53 k
 unixODBC-devel                                    x86_64                                    2.2.14-12.el6_3                                      c6-media                                     53 k
Transaction Summary
====================================================================================================================================================================================================
Install       2 Package(s)
Total download size: 106 k
Installed size: 364 k
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                               6.6 MB/s | 106 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : unixODBC-devel-2.2.14-12.el6_3.x86_64                                                                                                                                            1/2 
  Installing : unixODBC-devel-2.2.14-12.el6_3.i686                                                                                                                                              2/2 
  Verifying  : unixODBC-devel-2.2.14-12.el6_3.i686                                                                                                                                              1/2 
  Verifying  : unixODBC-devel-2.2.14-12.el6_3.x86_64                                                                                                                                            2/2 
Installed:
  unixODBC-devel.i686 0:2.2.14-12.el6_3                                                           unixODBC-devel.x86_64 0:2.2.14-12.el6_3                                                          
Complete!

2.通过yum install直接安装32位的包

yum install unixODBC-devel*i686


注意:CentOS将i386的包都重命名成了i686,所以会导致Oracle安装程序找不到i386的包,只要安装完整了,都是一样的,可以直接忽略

Linux 64bit yum同时安装32,,64位rpm包

标签:yum

原文地址:http://dbaway.blog.51cto.com/7099215/1686333

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!