查看某个命令属于哪个rpm安装包

背景:

在使用openshift的过程中,提示使用nodetool命令去配置些信息。

而当前系统却没有这个命令。

恰巧其他的os上有nodetool命令。那么如何查看nodetool是在什么包里存在的呢?


解决方法一:

# which nodetool

/usr/bin/nodetool

# rpm -qf /usr/bin/nodetool

cassandra-3.11.1-1.noarch


因此在系统上安装cassandra包即可。


解决方法二:

# yum whatprovides nodetool

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: download.nus.edu.sg

* extras: centos.usonyx.net

* updates: centos.usonyx.net

cassandra-3.11.0-1.noarch : Cassandra is a highly scalable, eventually consistent, distributed, structured key-value store.

Repo        : cassandra

Matched from:

Filename    : /usr/bin/nodetool

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容