====== HashiCorp Linux Repository ======
* [[https://www.terraform.io/cli/install/apt|APT Packages for Debian and Ubuntu | Terraform by HashiCorp]] : [[devops:terraform|Terraform]] 뿐만 아니라 모든 패키지 지원
* [[https://www.hashicorp.com/official-packaging-guide|Official Packaging Guide]]
* https://www.hashicorp.com/blog/announcing-the-hashicorp-linux-repository : 구버전 방법
* https://releases.hashicorp.com 에 있는 바이너리를 리눅스 리포지토리로 배포
===== 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 =====
* [[https://www.hashicorp.com/blog/announcing-hashicorp-homebrew-tap|Announcing HashiCorp’s Homebrew Tap]]
* [[devops:vagrant|Vagrant]] 제외하고 [[:homebrew|HomeBrew]] 로 설치가능.
brew install hashicorp/tap/{vault|consul|nomad|terraform|packer}
# upgrade
brew upgrade hashicorp/tap/