在单一体系结构下同时安装32位和64位包
echo ‘multilib_policy=all’ >> /etc/yum.conf

指定体系结构

查看当前系统体系结构
[root@oracle ~]# uname -ar
Linux oracle 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64

GNU/Linux

查看系统当前安装的iptables包
[root@oracle ~]# rpm -q iptables
iptables-1.4.7-5.1.el6_2.x86_64

使用YUM在64位环境下指定安装iptables的32位包
[root@oracle ~]# yum install iptables.i686
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package iptables.i686 0:1.4.7-5.1.el6_2 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Installing:
iptables i686 1.4.7-5.1.el6_2 base 241 k

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

Total download size: 241 k
Installed size: 702 k
Is this ok [y/N]:

指定版本

查看当前安装版本
[root@oracle ~]# rpm -q cups
cups-1.4.2-48.el6_3.1.x86_64

查看是否有新版本及版本号
[root@oracle ~]# yum update |grep cups
—> Package cups.x86_64 1:1.4.2-48.el6_3.1 will be updated
—> Package cups.x86_64 1:1.4.2-48.el6_3.3 will be an update
—> Package cups-libs.x86_64 1:1.4.2-48.el6_3.1 will be updated
—> Package cups-libs.x86_64 1:1.4.2-48.el6_3.3 will be an update
cups x86_64 1:1.4.2-48.el6_3.3 updates 2.3 M
cups-libs x86_64 1:1.4.2-48.el6_3.3 updates 316 k

[root@oracle ~]#

安装指定版本
[root@oracle ~]# yum install cups-1.4.2-48.el6_3.3
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package cups.x86_64 1:1.4.2-48.el6_3.1 will be updated
—> Package cups.x86_64 1:1.4.2-48.el6_3.3 will be an update
–> Processing Dependency: cups-libs = 1:1.4.2-48.el6_3.3 for package: 1:cups-1.4.2-48.el6_3.3.x86_64
–> Running transaction check
—> Package cups-libs.x86_64 1:1.4.2-48.el6_3.1 will be updated
—> Package cups-libs.x86_64 1:1.4.2-48.el6_3.3 will be an update
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Updating:
cups x86_64 1:1.4.2-48.el6_3.3 updates 2.3 M
Updating for dependencies:
cups-libs x86_64 1:1.4.2-48.el6_3.3 updates 316 k

Transaction Summary
=================================================================================================
Upgrade 2 Package(s)

Total download size: 2.6 M
Is this ok [y/N]:

yum安装指定版本软件

比如依赖libssl.so.0.9.8

01 [root@ares modules]# yum provides */libssl.so.0*                  
02 Loaded plugins: fastestmirror
03 Loading mirror speeds from cached hostfile
04  * base: mirrors.aliyun.com
05  * epel: ftp.sjtu.edu.cn
06  * extras: mirrors.aliyun.com
07  * remi: remi.kazukioishi.net
08  * updates: mirrors.skyshe.cn
09 openssl098e-0.9.8e-18.el6_5.2.i686 : A compatibility version of a general cryptography and TLS library
10 Repo        : base
11 Matched from:
12 Filename    : /usr/lib/libssl.so.0.9.8e
13  
14  
15  
16 openssl098e-0.9.8e-18.el6_5.2.x86_64 : A compatibility version of a general cryptography and TLS library
17 Repo        : base
18 Matched from:
19 Filename    : /usr/lib64/libssl.so.0.9.8e
20  
21  
22  
23 openssl098e-0.9.8e-18.el6_5.2.i686 : A compatibility version of a general cryptography and TLS library
24 Repo        : installed
25 Matched from:
26 Filename    : /usr/lib/libssl.so.0.9.8e

然后

[root@ares modules]# yum install openssl098e-0.9.8e-18.el6_5.2.i686

参考:

https://www.centos.org/forums/viewtopic.php?t=22243

指定YUM安装包的体系结构或版本的更多相关文章

  1. Helm神器,让管理Kubernetes像yum安装包一样简单

    目录 一.什么是Helm 二.安装 1.安装helm客户端 2.安装Tiller 3.创建服务端 4.给Tiller授权 5.为 Tiller 设置帐号 6.验证Tiller是否安装成功 三.Helm ...

  2. linux通过rpm和yum安装包

    1.rpm包的安装过程:进入rpm包的所在目录,通过rpm -ivh 包名安装,rpm安装无法解决依赖关系 2.yum安装过程:读取/etc/yum.repo/下配置文件中的baseurl地址,找到该 ...

  3. Elasticsearch各版本的MSI安装包和Kibana各版本的zip包(Windows)

    elastic各产品下载列表页:https://www.elastic.co/cn/downloads/ 打开Elasticsearch的下载页后看到的是当前最新版本的安装界面,现在最新的版本是7.4 ...

  4. Python 安装包时选择 python版本

    安装了两个版本的python 其中一个版本为2.7 专门为python 2.7安装包使用的语句为 升级pip E:\Python27\python -m pip install --upgrade p ...

  5. yum 安装包的时候提示“没有可用软件包”

    今天在使用 yum 命令进行包的下载时候,Linux 提示 没有可用的软件包~ 如下: [root@localhost share]# yum -y install wordpress 已加载插件:f ...

  6. yum 安装包的用法

    最近刚爆出linux下glibc有重大漏洞,修复方案为升级glibc库 RHEL/CentOS下一键即可修复 : sudo yum update glibc .或者如果本地有rpm包 直接 rpm - ...

  7. 【转】C#安装包(自动卸载低版本)

    一:版本号升级 1.ProductCode.Version(version比前一版本要高比如以前1.0.0现在就是1.0.1),     2.保持UpgradeCode不变(当设置RemovePrev ...

  8. yum安装包另存

    yum install --downloadonly --downloaddir=/tmp <package-name> 1.yum已安装的列表 yum list installed

  9. lnmp一键安装包,安装多版本php,并开启redis与swoole

    安装多版本的php sudo ./install.sh mphp Install ZendGuardLoader for PHP 7.1... unavailable now. Write ZendG ...

随机推荐

  1. Qt 按钮事件不响应

    在Qt中,我们设置好按钮的相应事件,连好信号槽,声明什么的也没什问题,但为什么点击按钮就是没有反应,检查了半天终于发现原来是子面板上也有一个相同名称的按钮,一般来说两个面板不为父子关系的时候,分别在不 ...

  2. 运维、linux运维是什么?

    从不知道运维是什么 到后来接触了linux运维 后来玩遍了运维常用的各种开源软件发现原来运维是这么回事 又到了后来,运维真的是我理解的这些吗?会软件,会配置,会部署.会调优,会处理故障...但是总觉得 ...

  3. 获取行间样式与在js中设置样式

    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/x ...

  4. css3常用代码整理

    1.圆角 .rd10{-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;-khtml-border-ra ...

  5. HDU4325 树状数组

    Flowers Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Sub ...

  6. c# 考试

    重点:值类型的变量直接存放实际的数据,存储在内存的栈中: 引用类型的变量存放的则是数据的地址,即对象的引用.存储在内存的堆中,而内存单元中只存放堆中对象的地址 常见的值类型数据有:整值型(整形,浮点型 ...

  7. AFN----AFNetworking

    一.介绍 官方介绍: 1.适用于iOS和Mac OS X两个平台的网络库 2.基于Foundation URL Loading System上进行一套封装 3.提供了丰富的API接口 4.是一个轻量级 ...

  8. IOS第二天多线程-03对列组合并图片

    ********* // 2D绘图 Quartz2D // 合并图片 -- 水印 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *) ...

  9. 【iCore3 双核心板】例程十:RTC实时时钟实验——显示日期和时间

    实验指导书及代码包下载: http://pan.baidu.com/s/1jHuZcnc iCore3 购买链接: https://item.taobao.com/item.htm?id=524229 ...

  10. 新广告法,极限词剔除,替换掉的mysql语句

    国家级,世界级,最高级, 最佳,最大,第一, 唯一,首个,首选, 最好,最大,精确, 顶级,最高,最低, 最,最具,最便宜, 最新,最先进,最大程度, 最新技术,最先进科学,国家级产品, 填补国内空白 ...