如何找到要使用 YUM 安装的特定软件包?

发布于 2024-11-19 19:45:26 字数 155 浏览 5 评论 0原文

我想在我的 Linux 机器上安装 Apache Solr,并且想知道是否可以使用 yum 安装它。 yum list 打印所有可用的软件包,但不可能阅读数千个软件包来找到正确的安装,特别是考虑到软件包几乎可以命名为任何名称。

有没有更好的方法来查明 yum 是否提供特定软件包?

I want to install Apache Solr on my linux machine, and am wondering if I can install it with yum. yum list prints all available packages, but it's impossible to read through thousands of these to find the right install, especially considering a package could be named virtually anything.

Is there a better way to find out if a particular package is available with yum?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

踏月而来 2024-11-26 19:45:26

有两个选项(因为它们都倾向于返回不同的结果)

yum search solr
yum list | grep solr

我在我的机器上只看到 PHP 插件,但我使用的是较旧的版本。

需要更多,您可以对其中包含 solr 的内容进行文件名匹配:

yum provides */*solr*

Two options (since they both tend to return different results)

yum search solr
yum list | grep solr

I see only the PHP plugin on my machine, but I'm using an older release.

Need even more, you can do a filename match on things with solr in them:

yum provides */*solr*
絕版丫頭 2024-11-26 19:45:26

尝试:

yum search solr

如果找不到,您可能需要添加更多存储库。

Try:

yum search solr

If it doesn't find it, you might need to add more repositories.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文