centos - centos 7上未安装httpbeat包

标签 centos centos7 rpm yum

我从以下位置下载了文件:
https://github.com/christiangalsterer/httpbeat/releaseshttpbeat-4.0.0-x86_64.rpm
并尝试通过以下方式安装它:sudo yum localinstall httpbeat-4.0.0-x86_64.rpm
但我没有看到它是通过命令安装的:

[k@f httpbeat]$ rpm -ql httpbeat-4.0.0-x86_64.rpm
package httpbeat-4.0.0-x86_64.rpm is not installed

[k@f httpbeat]$ sudo yum install httpbeat-4.0.0-x86_64.rpm
Loaded plugins: fastestmirror
Examining httpbeat-4.0.0-x86_64.rpm: httpbeat-5.2.1_SNAPSHOT-1.x86_64
httpbeat-4.0.0-x86_64.rpm: does not update installed package.
Error: Nothing to do

[k@f httpbeat]$ rpm -qi httpbeat-4.0.0-x86_64.rpm
package httpbeat-4.0.0-x86_64.rpm is not installed


[k@f httpbeat]$ sudo rpm -i httpbeat-4.0.0-x86_64.rpm
        package httpbeat-5.2.1_SNAPSHOT-1.x86_64 is already installed

[k@f httpbeat]$ rpm -qi httpbeat-4.0.0-x86_64.rpm
package httpbeat-4.0.0-x86_64.rpm is not installed


[k@f httpbeat]$ sudo yum remove httpbeat-4.0.0-x86_64.rpm
Loaded plugins: fastestmirror
No Match for argument: httpbeat-4.0.0-x86_64.rpm
No Packages marked for removal

[k@f httpbeat]$ sudo yum install httpbeat-4.0.0-x86_64.rpm
Loaded plugins: fastestmirror
Examining httpbeat-4.0.0-x86_64.rpm: httpbeat-5.2.1_SNAPSHOT-1.x86_64
httpbeat-4.0.0-x86_64.rpm: does not update installed package.
Error: Nothing to do

有时它告诉我它是 already installed ,其他时候不是 - 这是真的,我怎样才能成功安装它?

编辑 :
[k@f httpbeat]$ yum remove httpbeat-4.0.0-x86_64
Loaded plugins: fastestmirror
You need to be root to perform this command.
[k@f httpbeat]$ sudo yum remove httpbeat-4.0.0-x86_64
Loaded plugins: fastestmirror
No Match for argument: httpbeat-4.0.0-x86_64
No Packages marked for removal

rpm -ql httpbeat-4.0.0-x86_64
package httpbeat-4.0.0-x86_64 is not installed

最佳答案

这个命令是错误的:

$ rpm -ql httpbeat-4.0.0-x86_64.rpm
rpm命令在数据库中查找包名,它没有 .rpm扩大。相反,请在使用 yum localinstall 之后执行此操作。
$ rpm -ql httpbeat-4.0.0-x86_64
yum remove 也是如此.安装后使用 rpmdb ,
$ yum remove httpbeat-4.0.0-x86_64

关于centos - centos 7上未安装httpbeat包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54111457/

相关文章:

php - CentOS PHP 7.4 升级 pecl/pear 包时出错

magento - CentOs Magento 文件创建为目录?

ffmpeg - 在 Centos 7 中安装 ffmpeg

linux - 安装 rpm 包并处理依赖关系

linux - 在源压缩包中嵌入二进制 rpm

bash - 警告 : RPMDB altered outside of yum hangs on rpm install

mysql - 慢查询问题 - 得到通知

git - 意外删除bin文件夹后恢复Gitlab

python - Python Locust 的默认安装抛出异常

linux - 如何检查 RPM .spec 文件中是否存在文件?