没有包装JQ可用
我正在尝试使用Linux 7机器上安装JQ,
sudo yum install -y jq
但我遇到了此错误。
$ sudo yum install -y jq
Password:
Loaded plugins: aliases, changelog, kabi, langpacks, tmprepo, verify, versionlock
Loading support for kernel ABI
No package jq available.
Error: Nothing to do
该解决方案是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JQ
软件包不存在于默认RHEL 7或CENTOS 7存储库中。它可以在Fedora Project维护的Enterprise Linux(EPEL)存储库的额外软件包中可用。按照在这里:
RHEL 7
Centos 7
添加了EPEL存储库后,您应该能够
yum安装JQ
。The
jq
package is not present in the default RHEL 7 or CentOS 7 repositories.It is available in the Extra Packages for Enterprise Linux (EPEL) repository, maintained by the Fedora project. Following the instructions from here:
RHEL 7
CentOS 7
Once the EPEL repository is added, you should be able to
yum install jq
.您可以考虑使用一个工具,例如 arkade 不依赖中央存储库的更新,而是依赖于中央存储库Github释放了各自的工具。这些工具还可以在您的主目录中安装在
$ home/.arkade/bin
上。典型的用法将是
You could consider using a tool like arkade which does not depend on central repositories getting updated but, instead relies on the the github releases for the respective tools. The tools also get installed in your home directory at
$HOME/.arkade/bin
.Typical usage would be