terraform,

How to Install Terraform on Ubuntu 23.04

May 06, 2023 · 1 min read · Post a comment

Installing Terraform on Ubuntu 23.04 follows the same process as the other Debian-based distros. Let’s jump on the installation part.

Prerequisites

  • sudo privileges

Install Terraform on Ubuntu 23.04

Step 1. Update the package list:

sudo apt-get update

Step 2. Install the unzip package by running the following command:

sudo apt-get install unzip

Step 3. Download the latest version of Terraform for Linux from the official website by running the following command:

wget https://releases.hashicorp.com/terraform/<version>/terraform_<version>_linux_amd64.zip

Replace with the version number of Terraform you want to install.

Step 4. Unzip the downloaded package by running the following command:

unzip terraform_<version>_linux_amd64.zip

Step 5. Move the Terraform binary to the /usr/local/bin directory by running the following command:

sudo mv terraform /usr/local/bin/

Step 6. Verify that Terraform is installed correctly by running the following command:

terraform --version

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.