我觉得自己问这个问题很愚蠢,但是:
在 CentOS 上,我应该安装哪个软件包才能使用这个most
命令(一个非常好的寻呼机)?谷歌搜索会出现太多不相关的结果。在 yum 数据库中搜索也是空的。
# yum search most
bzr-gtk.x86_64 : Bazaar plugin for GTK+ interfaces to most Bazaar operations
eggdrop.x86_64 : The world's most popular Open Source IRC bot
gkrellm-top.x86_64 : GKrellM plugin which shows 3 most CPU intensive processes
man.x86_64 : A set of documentation tools: man, apropos and whatis
qbzr.noarch : Bazaar plugin for Qt interface to most Bazaar operations
一个更普遍的问题是:如何搜索包含特定可执行文件或文件的 RPM?
笔记:这不是重复的如何在 CentOS 上查找某个命令属于哪个包?,因为这只讨论已安装的软件包。
答案1
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/utilities/CentOS_6/x86_64/most-5.0.0a-3.1.x86_64.rpm
yum localinstall most-5.0.0a-3.1.x86_64.rpm
(通过rpm搜索)
答案2
在 CentOS 和 Redhat 上,默认存储库非常有限。要访问更多软件包,您需要安装 EPEL 和 RPMForge。
https://fedoraproject.org/wiki/EPEL https://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F
要安装它们:
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
之后,您只需most
执行以下操作即可安装
sudo yum install most
搜索包的命令依然是yum whatprovides */most
。经过长时间的搜索,答案出现了:
most-4.10.2-1.2.el6.rf.x86_64 : Text viewer similar to more or less, but with additional capabilities
Repo : rpmforge
Matched from:
Filename : /usr/bin/most