How to install Terraform on Ubuntu Linux 18.04 desktop machine?

How to install Terraform on Ubuntu Linux 18.04 desktop machine?

    Let's install Terraform by downloading and extracting the executable binary for Linux. This is most recommended way of installing Terraform on any Linux-based operating system. No matter how we install Terraform, its just a executable binary. Once the installation is done, you need to verify Terraform version to check whether it is properly installed or not.

# Download Terraform.
$ wget https://releases.hashicorp.com/terraform/1.0.1/terraform_1.0.1_linux_amd64.zip -P /tmp

# Extract Terraform from archive.
$ unzip /tmp/terraform_1.0.1_linux_amd64.zip
 
# Install Terraform.
$ sudo mv terraform /usr/local/bin
 
# Check Terraform version.
$ terraform --version

    • Related Articles

    • How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Linux host machine. # Install required system packages. $ ...
    • How to install Vagrant on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install Vagrant to automate and manage virtual machines. Now, let's see how to do Vagrant installation on Linux host machine. # Download Vagrant. $ wget ...
    • How to install Docker on Ubuntu Linux 18.04 desktop machine?

      Docker is available in two editions: Community Edition (CE) and Enterprise Edition (EE). Here, we'll proceed with Docker CE, the Community Edition. To do a clean installation, you must first remove existing Docker installation, if anything found. And ...
    • How to install Git on Ubuntu Linux 18.04 desktop machine?

      Here, we install Git using system package manager. This is most recommended way of installing Git on Ubuntu Linux operating system. No matter how we install Git, its just a command line utility. Once the installation is done, you need to verify Git ...
    • How to install Jenkins on Ubuntu Linux 18.04 desktop machine?

      Here, we proceed with Open JDK and Jenkins installation by configuring and updating its Debian repository on our local machine. This is most recommended way of installing Jenkins on Ubuntu Linux operating system. Once the installation is done, you ...