Upgrade Terraform version

Borja Lopez picture Borja Lopez · Nov 28, 2016 · Viewed 42.1k times · Source

I'm start using Terraform and I'm following the project updates on his Github repository.

I see new releases are available on releases section: https://github.com/hashicorp/terraform/releases

I installed Terraform tool following the steps: https://www.terraform.io/intro/getting-started/install.html

The new releases are a zip file with base code but I want to know how I can install it on my computer (OSX). What I downloaded when I installed for the first time was a zip file with just a "terraform" file as unix executable.

How I can generate this Unix executable from the zip available on the github releases section?

Any idea?

Thank you!

Answer

J P picture J P · Jun 26, 2017

If you use Homebrew on MacOS already, you can install Terraform simply by

$ brew install terraform

and upgrade by

$ brew upgrade terraform

In fact, you might be interested in letting Homebrew also control other tools:

$ brew install awscli
$ brew install packer
$ brew cask install docker
$ brew cask install virtualbox
$ brew cask install vagrant