在rocky linux 9.5上安装yq

下载并安装yq

sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq

赋予执行权限

sudo chmod +x /usr/local/bin/yq

验证安装

yq --version

root@bastion quickstart# sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq

--2025-09-26 08:28:16-- https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64

Resolving github.com (github.com)... 20.205.243.166

Connecting to github.com (github.com)|20.205.243.166|:443... connected.

HTTP request sent, awaiting response... Read error (The TLS connection was non-properly terminated.) in headers.

Retrying.

--2025-09-26 08:29:49-- (try: 2) https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64

Connecting to github.com (github.com)|20.205.243.166|:443... failed: Connection timed out.

Resolving github.com (github.com)... 20.205.243.166

Connecting to github.com (github.com)|20.205.243.166|:443... failed: Connection timed out.

Retrying.

--2025-09-26 08:34:11-- (try: 3) https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64

Connecting to github.com (github.com)|20.205.243.166|:443... connected.

HTTP request sent, awaiting response... 302 Found

Location: https://github.com/mikefarah/yq/releases/download/v4.47.2/yq_linux_amd64 following

--2025-09-26 08:34:12-- https://github.com/mikefarah/yq/releases/download/v4.47.2/yq_linux_amd64

Reusing existing connection to github.com:443.

HTTP request sent, awaiting response... 302 Found

Location: https://release-assets.githubusercontent.com/github-production-release-asset/43225113/ec0b9f90-6a7f-4a2c-a8c6-67103fbb687a?sp=r\&sv=2018-11-09\&sr=b\&spr=https\&se=2025-09-26T01%3A12%3A09Z\&rscd=attachment%3B+filename%3Dyq_linux_amd64\&rsct=application%2Foctet-stream\&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0\&sktid=398a6654-997b-47e9-b12b-9515b896b4de\&skt=2025-09-26T00%3A11%3A42Z\&ske=2025-09-26T01%3A12%3A09Z\&sks=b\&skv=2018-11-09\&sig=qHpuoUHhIq0t3x3BqEqIWDg52ctCFbsXG8%2BZfsogoM4%3D\&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc1ODg0NzE1MiwibmJmIjoxNzU4ODQ2ODUyLCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.mS5BHhQC02k2eAeoKAhoESeYRTb_ZzPT39GShlUdsKw\&response-content-disposition=attachment%3B filename%3Dyq_linux_amd64\&response-content-type=application%2Foctet-stream following

--2025-09-26 08:34:13-- https://release-assets.githubusercontent.com/github-production-release-asset/43225113/ec0b9f90-6a7f-4a2c-a8c6-67103fbb687a?sp=r\&sv=2018-11-09\&sr=b\&spr=https\&se=2025-09-26T01%3A12%3A09Z\&rscd=attachment%3B+filename%3Dyq_linux_amd64\&rsct=application%2Foctet-stream\&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0\&sktid=398a6654-997b-47e9-b12b-9515b896b4de\&skt=2025-09-26T00%3A11%3A42Z\&ske=2025-09-26T01%3A12%3A09Z\&sks=b\&skv=2018-11-09\&sig=qHpuoUHhIq0t3x3BqEqIWDg52ctCFbsXG8%2BZfsogoM4%3D\&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc1ODg0NzE1MiwibmJmIjoxNzU4ODQ2ODUyLCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.mS5BHhQC02k2eAeoKAhoESeYRTb_ZzPT39GShlUdsKw\&response-content-disposition=attachment%3B filename%3Dyq_linux_amd64\&response-content-type=application%2Foctet-stream

Resolving release-assets.githubusercontent.com (release-assets.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ...

Connecting to release-assets.githubusercontent.com (release-assets.githubusercontent.com)|185.199.110.133|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 11477176 (11M) application/octet-stream

Saving to: '/usr/local/bin/yq'

/usr/local/bin/yq 100%=====================================================================================\> 10.95M 1002KB/s in 7.1s

2025-09-26 08:34:22 (1.55 MB/s) - '/usr/local/bin/yq' saved 11477176/11477176

root@bastion quickstart# sudo chmod +x /usr/local/bin/yq

root@bastion quickstart# yq --version

yq (https://github.com/mikefarah/yq/) version v4.47.2

root@bastion quickstart#

相关推荐
楚枫默寒6 小时前
Linux 编辑文件后自动添加修改日期
linux·运维·bash
2601_961194028 小时前
27考研刘晓艳单词pdf
linux·sql·ubuntu·华为·pdf·.net
2023自学中10 小时前
imx6ull 开发板 推流ov5640数据,虚拟机用 ffplay 拉流播放
linux·音视频·嵌入式·开发板
shandianchengzi10 小时前
【记录】Ghidra|Ubuntu 26.04 下 Ghidra 界面缩放完整指南
linux·ubuntu·逆向·ghidra
Soari10 小时前
Ubuntu 根分区文件系统损坏,系统启动时自动检查失败
linux·运维·ubuntu
杨云龙UP10 小时前
Oracle Health Check巡检脚本使用SOP V2.0:从HTML原始报告→生成Word专业巡检报告→交付客户_2026-06-03
linux·运维·数据库·sql·oracle·报告·巡检
广州灵眸科技有限公司11 小时前
瑞芯微RV1126B开发板(EASY-EAI-PI2) Linux虚拟机准备
linux·运维·服务器
Peace12 小时前
【Prometheus】
linux·运维·prometheus
真上帝的左手13 小时前
11. 容器化 vs 虚拟化-K8s-工作负载实战
云原生·容器·kubernetes
LZZ and MYY14 小时前
RTS 在windows和Linux之间ShareMem
linux·运维·服务器