gpt4 book ai didi

linux - 在 redhat 6.3 上安装 RPM 失败

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:42:48 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com