如何在CentOS 6上安装带有RPM(cx_Oracle)的软件?

时间:2013-03-26 18:22:24

标签: python-2.7 centos yum cx-oracle centos6

我有一个软件模块的RPM,我想安装到CentOS 6系统上。我已通过命令'rpm -ivh'将此RPM安装到yum数据库中。我的理解是,现在RPM可用于通过'yum install'安装模块,但是这没有用,即我在尝试时得到“无需安装”消息。所以我一定不能做对吗?有人可以建议吗?

FYI这是我到目前为止所尝试的内容:

$ rpm -ivh cx_Oracle-5.1.2-11g-py27-1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cx_Oracle              ########################################### [100%]

$ yum search cx_Oracle
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ash.fastserv.com
 * extras: mirror.symnds.com
 * updates: ftp.linux.ncsu.edu
base                                                     | 3.7 kB     00:00
extras                                                   | 3.5 kB     00:00
updates                                                  | 3.5 kB     00:00
============================ N/S Matched: cx_Oracle ============================
cx_Oracle.x86_64 : Python interface to Oracle

$ yum install cx_Oracle
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ash.fastserv.com
 * extras: mirror.symnds.com
 * updates: ftp.linux.ncsu.edu
base                                                     | 3.7 kB     00:00
extras                                                   | 3.5 kB     00:00
updates                                                  | 3.5 kB     00:00
Setting up Install Process
Nothing to do

$ yum update cx_Oracle
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ash.fastserv.com
 * extras: mirror.symnds.com
 * updates: ftp.linux.ncsu.edu
base                                                     | 3.7 kB     00:00
extras                                                   | 3.5 kB     00:00
updates                                                  | 3.5 kB     00:00
Setting up Update Process
No Packages marked for Update

提前感谢任何建议,见解等。

1 个答案:

答案 0 :(得分:0)

您已安装该软件包。您使用rpm安装cx_Oracle-5.1.2-11g-py27-1.x86_64.rpm。 yum search cx_Oracle报告的“cx_Oracle.x86_64”是您通过rpm命令在计算机上安装的那个。