我正在尝试在unixODBC-2.2.14-11.el6.x86_64.rpm
上安装redhat 6.3
。它提供了以下输出:
[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/