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

잔글 (Jmnote님이 Yq 설치 문서를 리눅스 yq 설치 문서로 이동했습니다)
 
6번째 줄: 6번째 줄:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
VERSION=v4.40.5
VERSION=v4.40.5
BINARY=yq_linux_amd64
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_amd64 -o yq
curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -o yq
chmod +x yq
chmod +x yq
sudo mv yq /usr/local/bin/
sudo mv yq /usr/local/bin/
yq -V
</syntaxhighlight>
</syntaxhighlight>


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



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 }}