未在centos 7上安装httpbeat软件包

时间:2019-01-09 13:38:19

标签: centos centos7 rpm yum

我从以下位置下载了文件: https://github.com/christiangalsterer/httpbeat/releases httpbeat-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

1 个答案:

答案 0 :(得分:0)

此命令是错误的:

$ 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
相关问题