- jq可以給shell提供json解析功能,但托管在epel倉庫
yum -y install epel-release
yum clean all
yum makecache
yum -y install jq
- 若安裝過程遇到如下問題:
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