linux - 在 redhat 6.3 上安装 RPM 失败

标签 linux rpm

我正在尝试在 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/

相关文章:

linux - linux下有没有汇编器REPL?

mysql - Windows 中的 Ubuntu Linux 18.04 WSL : MariaDB service start fails

ffmpeg - %configure - 未知选项 --build

linux - Vertica rpm 安装失败

centos - rpm -i 表示已安装,但 rpm -e 表示未安装

centos - yum - 安装一个只有名字和版本的包

linux - RPM SPEC 文件实际上没有做任何事情,只是安装?

python - Linux, Selenium : traffic usage starts action

java - "No X11 DISPLAY variable"- 这是什么意思?

python - 在 python 中将变量写入 txt 会引发一些错误