목차

HashiCorp Linux Repository

Ubuntu / Debian

wget -qO- https://apt.releases.hashicorp.com/gpg | \
    gpg --dearmor | \
    sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
# --dearmor 를 안하고 저장할 때는 확장자를 ''.asc''로 해야한다.
 
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
    https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
    sudo tee /etc/apt/sources.list.d/hashicorp.list
 
# fingerprint 매치 확인 - E8A0 32E0 94D8 EB4E A189 D270 DA41 8C88 A321 9F7B
gpg --no-default-keyring \
    --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
    --fingerprint

Homebrew tap

brew install hashicorp/tap/{vault|consul|nomad|terraform|packer}
 
# upgrade
brew upgrade hashicorp/tap/<product name>