🦁

Amazon Linuxにyqをインストール

2023/12/21に公開

Amazon Linuxでyqを使えるようにするまでのメモ

https://github.com/mikefarah/yq

環境

cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2025-06-30"

yqをインストール

yumではインストールできなかったのでcurlでダウンロード

curl -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq
chmod +x /usr/bin/yq

yqの実行

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

Discussion