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

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


{{소스헤더|특정 버전 설치}}
{{소스헤더|특정 버전 설치}}
<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 -sL 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 }}