我正在尝试在 redhat 6.3
上安装 unixODBC-2.2.14-11.el6.x86_64.rpm
。它给了我以下输出:
[root@localhost khan]# yum install unixODBC-2.2.14-11.el6.x86_64.rpm
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Repository InstallMedia is listed more than once in the configuration
Setting up Install Process
Examining unixODBC-2.2.14-11.el6.x86_64.rpm: unixODBC-2.2.14-11.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do
但是当我尝试通过#rpm -q unixODBC-2.2.14-11.el6.x86_64.rpm
查询它时,
它给出的输出为:
package unixODBC-2.2.14-11.el6.x86_64.rpm is not installed
最佳答案
您误用了 rpm
命令。使用 -q
选项,rpm
接收包名,而不是文件名。从最后删除 .rpm
,你应该没问题:
$ rpm -q unixODBC-2.2.14-11.el6.x86_64
关于linux - 在 redhat 6.3 上安装 RPM 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40880824/