1. jq可以给shell提供json解析功能,但托管在epel仓库
yum -y install epel-release
yum clean all
yum makecache
yum -y install jq
  1. 若安装过程遇到如下问题:

yum Cannot retrieve metalink for repository: epel/x86_64

解决办法:既然不能用https的仓库,那就直接使用http吧,epel也正好支持http+https两种方式,然后清理,重新安装:

# 将https转为http
sed -i 's#https://#http://#g' /etc/yum.repos.d/epel*repo
yum clean all
yum makecache
yum -y install jq

相关文章:

  • 2021-11-15
  • 2021-08-21
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-27
  • 2021-10-26
  • 2021-11-06
  • 2022-12-23
  • 2021-12-13
  • 2022-03-01
相关资源
相似解决方案