"리눅스 yq 설치"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 8개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
{{소문자}}
{{소문자}}
;yq 설치
;리눅스 yq 설치


{{소스헤더|특정 버전 설치}}
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
curl -L https://github.com/mikefarah/yq/releases/download/v4.13.0/yq_linux_amd64 -o yq
VERSION=v4.40.5
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_amd64 -o yq
chmod +x yq
chmod +x yq
sudo mv yq /usr/local/bin/
sudo mv yq /usr/local/bin/
yq -V
</syntaxhighlight>
{{소스헤더|최신 버전 설치}}
<syntaxhighlight lang='bash'>
VERSION=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | grep -oP 'tag_name": "\K[^"]+')
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_amd64 -o yq
chmod +x yq
sudo mv yq /usr/local/bin/
yq -V
</syntaxhighlight>
</syntaxhighlight>


12번째 줄: 24번째 줄:
* [[yq]]
* [[yq]]
* [[jq 설치]]
* [[jq 설치]]
==참고==
* https://mikefarah.gitbook.io/yq/#install


[[분류: yq]]
[[분류: yq]]

2024년 5월 4일 (토) 02:17 기준 최신판

1 개요[ | ]

리눅스 yq 설치
특정 버전 설치
VERSION=v4.40.5
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_amd64 -o yq
chmod +x yq
sudo mv yq /usr/local/bin/
yq -V
최신 버전 설치
VERSION=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | grep -oP 'tag_name": "\K[^"]+')
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_amd64 -o yq
chmod +x yq
sudo mv yq /usr/local/bin/
yq -V

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}