{"id":27003,"date":"2025-02-07T07:54:56","date_gmt":"2025-02-07T07:54:56","guid":{"rendered":"https:\/\/linux.how2shout.com\/?p=27003"},"modified":"2025-02-07T07:55:03","modified_gmt":"2025-02-07T07:55:03","slug":"how-to-install-terraform-on-ubuntu-24-04-linux","status":"publish","type":"post","link":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/","title":{"rendered":"How to Install Terraform on Ubuntu 24.04 Linux"},"content":{"rendered":"\r\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><strong>Terraform,<\/strong>\u00a0which can be easily installed on Ubuntu 24.04 Linux, is an open-source Infrastructure as Code (IaC) tool developed by\u00a0<strong>HashiCorp<\/strong>.<\/span> Developers and other system administrators use this tool to provision and manage cloud infrastructure on AWS, Google Cloud, Azure, and other platforms.<\/p>\r\n\r\n\r\n\r\n<p>If you are not aware of the commands available to install Terraform and using <strong>Ubuntu Linux (24.04, 22.04, 20.04, etc.)<\/strong>, then this guide can help configure<strong> Terraform<\/strong> using different methods; here are a few we are going to discuss in this article:<\/p>\r\n\r\n\r\n\r\n<p>\u2705 <strong>Installing via APT (Recommended)<\/strong><br \/>\u2705 <strong>Installing via Binary (Manual Method)<\/strong><br \/>\u2705 <strong>Installing via Snap<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Now, let&#8217;s go through each mentioned method one by one in detail! \ud83d\ude80<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2 id=\"h-method-1-install-terraform-using-apt-recommended\" class=\"wp-block-heading\">Method 1: Install Terraform Using APT (Recommended)<\/h2>\r\n\r\n\r\n\r\n<p>The most and the easiest way to install any software package on Ubuntu Linux is by using its default package manager APT. It is not only a reliable way, but it also ensures that the package we have installed gets the latest updates automatically.<\/p>\r\n\r\n\r\n\r\n<p>This is the <strong>easiest and most reliable<\/strong> way to install Terraform on Ubuntu because it ensures you get the latest version and automatic updates.<\/p>\r\n\r\n\r\n\r\n<h3 id=\"h-step-1-install-pre-required-packages\" class=\"wp-block-heading\">Step 1: Install Pre-required packages<\/h3>\r\n\r\n\r\n\r\n<p>Although the given packages should already be on your system, to confirm, execute the command that will install them if they are not already. These packages will help the system add external APT repositories.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt install -y gnupg software-properties-common wget<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-2-add-hashicorp-repository\" class=\"wp-block-heading\">Step 2: Add HashiCorp Repository<\/h3>\r\n\r\n\r\n\r\n<p>The program Terraform is not available to install using the default system repository of Ubuntu 24.04, so we need to add the official APT repository of HashiCorp along with the GPG key used to sign the packages.<\/p>\r\n\r\n\r\n\r\n<p><strong>Add the GPG key:<\/strong><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">wget -O - https:\/\/apt.releases.hashicorp.com\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg<\/code><\/pre>\r\n\r\n\r\n\r\n<p><strong>Now, add the repository:<\/strong><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">echo \"deb [arch=$(dpkg --print-architecture) 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<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-3-update-package-index\" class=\"wp-block-heading\">Step 3: Update Package Index<\/h3>\r\n\r\n\r\n\r\n<p>We need to run the system update command once to let the system recognize the newly added APT repository and the packages meant to be downloaded. Here is the syntax to follow:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-4-install-terraform-on-ubuntu-24-04-or-in-other-versions\" class=\"wp-block-heading\">Step 4: Install Terraform on Ubuntu 24.04 or in other versions<\/h3>\r\n\r\n\r\n\r\n<p>The command to install Terraform on Ubuntu 24.04 is not limited to this version; even Debian and other Ubuntu Linux users with different versions can download and install the Terraform packages.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt install terraform<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"478\" class=\"wp-image-27008\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/Command-to-Install-Terraform.webp\" alt=\"Command to Install Terraform\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 id=\"h-step-5-verify-installation\" class=\"wp-block-heading\">Step 5: Verify Installation<\/h3>\r\n\r\n\r\n\r\n<p>To ensure this Harshicorp tool is on our system, we can just run the given command to check its version.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">terraform -version<\/code><\/pre>\r\n\r\n\r\n\r\n<p>\u2705 <strong>Terraform is now installed and ready to use!<\/strong><\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2 id=\"h-method-2-install-terraform-using-binary-file-manual-method\" class=\"wp-block-heading\">Method 2: Install Terraform Using Binary File (Manual Method)<\/h2>\r\n\r\n\r\n\r\n<p>Although the APT is a straightforward method to get Terraform, here is one more for those who don&#8217;t want to use it. In this method, users who don&#8217;t need to add any external repository or need a specific version can <strong><a href=\"https:\/\/linux.how2shout.com\/ubuntu-24-04-how-to-install-a-binary-file-step-by-step-guide\/\">manually install the binary file<\/a><\/strong> of Terraform following these steps:<\/p>\r\n\r\n\r\n\r\n<h3 id=\"h-step-1-download-terraform-binary\" class=\"wp-block-heading\">Step 1: Download Terraform Binary<\/h3>\r\n\r\n\r\n\r\n<p>Go to the official HashiCorp Terraform download page: \ud83d\udc49 <a href=\"https:\/\/developer.hashicorp.com\/terraform\/install\">https:\/\/www.terraform.io\/downloads<\/a>, or use the Wget command given below to download the binary in your Ubuntu terminal. But don&#8217;t forget to replace the <strong>version <\/strong>in the given command with the one you want to download. (<strong>Replace <\/strong>1.10.7 with the latest version from the website.)<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">wget https:\/\/releases.hashicorp.com\/terraform\/1.10.5\/terraform_1.10.5_linux_amd64.zip<\/code><\/pre>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"422\" class=\"wp-image-27009\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/Install-Terraform-Using-Binary-File-1024x422.webp\" alt=\"Install Terraform Using Binary File\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 id=\"h-step-2-extract-the-binary\" class=\"wp-block-heading\">Step 2: Extract the Binary<\/h3>\r\n\r\n\r\n\r\n<p>The downloaded binary will be in zip archived format; unzip it to extract the terraform standalone binary.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">unzip terraform_*_linux_amd64.zip<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-3-move-the-binary-to-usr-local-bin\" class=\"wp-block-heading\">Step 3: Move the Binary to \/usr\/local\/bin<\/h3>\r\n\r\n\r\n\r\n<p>To make Terraform accessible system-wide, move it to <code>\/usr\/local\/bin\/<\/code>, this will allow us to run it from anywhere in the Terminal without specifying its binary path.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo mv terraform \/usr\/local\/bin\/<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Check if Terraform is working:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">terraform -version<\/code><\/pre>\r\n\r\n\r\n\r\n<p>\u2705 <strong>Terraform is now installed manually.<\/strong><\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2 id=\"h-method-3-install-terraform-using-snap\" class=\"wp-block-heading\">Method 3: Install Terraform Using Snap<\/h2>\r\n\r\n\r\n\r\n<p>In addition to APT, Ubuntu users have one more package manager called <strong>Snap<\/strong>. It is a secure way to add applications to the system in an isolated environment. It is recommended for those who don&#8217;t want to add an APT repository or manually install and configure the Terraform binary on Ubuntu.<\/p>\r\n\r\n\r\n\r\n<h3 id=\"h-step-1-install-snap-if-not-installed\" class=\"wp-block-heading\">Step 1: Install Snap (If Not Installed)<\/h3>\r\n\r\n\r\n\r\n<p>Snap will already be available on most of the modern Ubuntu systems; however, to confirm, you can execute the given syntax:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt install snapd -y<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-2-install-terraform-using-snap\" class=\"wp-block-heading\">Step 2: Install Terraform Using Snap<\/h3>\r\n\r\n\r\n\r\n<p>Finally, use the Snap command to install Terraform.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo snap install terraform --classic<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-3-verify-installation\" class=\"wp-block-heading\">Step 3: Verify Installation<\/h3>\r\n\r\n\r\n\r\n<p>To check whether the installation is successfully done or not, use:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">terraform -version<\/code><\/pre>\r\n\r\n\r\n\r\n<p>\u2705 <strong>Terraform is now installed via Snap.<\/strong><\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Updating<\/h2>\r\n\r\n\r\n\r\n<p>\u2705 <strong>APT repository users:<\/strong> If you are using the APT package manager to install the Terraform, then simply running the system update and upgrade will also install if the latest version is available for it:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\r\n\r\n\r\n\r\n<p>\u2705 <strong>For Manual users:<\/strong><\/p>\r\n\r\n\r\n\r\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">Users who manually added the Terraform Standalone binary need to follow the same steps again, which means downloading the latest from its official website, unzipping it, and placing the binary in <strong>\/usr\/local\/bin\/<\/strong>.<\/span><\/p>\r\n\r\n\r\n\r\n<p>\u2705 <strong>For Snap users:<\/strong> They need to execute the given command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo snap refresh terraform<\/code><\/pre>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<h2 id=\"h-how-to-uninstall-terraform\" class=\"wp-block-heading\">How to Uninstall Terraform<\/h2>\r\n\r\n\r\n\r\n<p>Those who don&#8217;t need the Terraform and are looking for a way to remove it can use the commands given here according to the methods used to install it.<\/p>\r\n\r\n\r\n\r\n<p><strong>Remove Terraform (APT Installation)<\/strong><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt remove terraform -y<\/code><\/pre>\r\n\r\n\r\n\r\n<p>To remove the HashiCorp repository:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo rm \/etc\/apt\/sources.list.d\/hashicorp.list<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Then, clean up the package cache:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo apt update<\/code><\/pre>\r\n\r\n\r\n\r\n<p><strong>Uninstallation Terraform (Manual Installation)<\/strong><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo rm \/usr\/local\/bin\/terraform<\/code><\/pre>\r\n\r\n\r\n\r\n<p><strong>Remove Terraform (Snap Installation)<\/strong><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">sudo snap remove terraform<\/code><\/pre>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2 id=\"h-how-to-use-terraform-basic-setup\" class=\"wp-block-heading\">How to Use Terraform (Basic Setup)<\/h2>\r\n\r\n\r\n\r\n<p>Now that Terraform is installed, let&#8217;s test it using a simple configuration.<\/p>\r\n\r\n\r\n\r\n<h3 id=\"h-step-1-create-a-new-directory-for-terraform-project\" class=\"wp-block-heading\">Step 1: Create a New Directory for Terraform Project<\/h3>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">mkdir terraform-test\r\ncd terraform-test<\/code><\/pre>\r\n\r\n\r\n\r\n<h3 id=\"h-step-2-initialize-terraform\" class=\"wp-block-heading\">Step 2: Initialize Terraform<\/h3>\r\n\r\n\r\n\r\n<p>Run the following command to initialize Terraform:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">terraform init<\/code><\/pre>\r\n\r\n\r\n\r\n<p>This sets up Terraform in the current directory.<\/p>\r\n\r\n\r\n\r\n<h3 id=\"h-step-3-create-a-sample-terraform-configuration\" class=\"wp-block-heading\">Step 3: Create a Sample Terraform Configuration<\/h3>\r\n\r\n\r\n\r\n<p>Create a file named <code>main.tf<\/code>:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">nano main.tf<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Add the following example code to create an AWS EC2 instance (change the region accordingly):<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">\"aws\" {<br \/>  region = \"us-east-1\"<br \/>}<br \/><br \/>resource \"aws_instance\" \"example\" {<br \/>  ami           = \"ami-0c55b159cbfafe1f0\"<br \/>  instance_type = \"t2.micro\"<br \/>}<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Save and exit (<code>CTRL + X<\/code>, then <code>Y<\/code> and <code>Enter<\/code>).<\/p>\r\n\r\n\r\n\r\n<h3 id=\"h-step-4-apply-terraform-configuration\" class=\"wp-block-heading\">Step 4: Apply Terraform Configuration<\/h3>\r\n\r\n\r\n\r\n<p>To create the resources defined in <code>main.tf<\/code>, run:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code class=\"language-bash\" lang=\"bash\">terraform apply<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Terraform will show the execution plan. Type <strong><code>yes<\/code><\/strong> to proceed.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2 id=\"h-conclusion\" class=\"wp-block-heading\">Conclusion<\/h2>\r\n\r\n\r\n\r\n<p>That&#8217;s it! Now you know <strong>how to install Terraform on Ubuntu Linux<\/strong> using different methods. \ud83d\ude80<\/p>\r\n\r\n\r\n\r\n<p>\u2705 <strong>APT Method (Recommended) \u2013 Best for stability and automatic updates<\/strong><br \/>\u2705 <strong>Manual Binary Installation \u2013 Useful for custom versions<\/strong><br \/>\u2705 <strong>Snap \u2013 Easy but not always up to date<\/strong><\/p>\r\n\r\n\r\n\r\n<p>After installation, you can start using <strong>Terraform<\/strong> to automate infrastructure deployment. Let me know if you have any problems in performing the installation! \ud83d\ude03<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Terraform,\u00a0which can be easily installed on Ubuntu 24.04 Linux, is an open-source Infrastructure as Code (IaC) tool developed by\u00a0HashiCorp. Developers and other system administrators use this tool to provision and manage cloud infrastructure on AWS, Google Cloud, Azure, and other platforms. If you are not aware of the commands available to install Terraform and using [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":27016,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","_mbp_gutenberg_autopost":false,"footnotes":""},"categories":[3],"tags":[28,2176,31,29,1261,30,3172,3207],"class_list":{"0":"post-27003","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ubuntu","8":"tag-linux","9":"tag-server","10":"tag-tutorial","11":"tag-ubuntu","12":"tag-ubuntu-18-04","13":"tag-ubuntu-20-04","14":"tag-ubuntu-22-04","15":"tag-ubuntu-24-04"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Terraform on Ubuntu 24.04 Linux - LinuxShout<\/title>\n<meta name=\"description\" content=\"If you are not aware of the commands available to install Terraform and using Ubuntu Linux (24.04, 22.04, 20.04, etc.), then this guide can help configure Terraform using different methods.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Terraform on Ubuntu 24.04 Linux\" \/>\n<meta property=\"og:description\" content=\"If you are not aware of the commands available to install Terraform and using Ubuntu Linux (24.04, 22.04, 20.04, etc.), then this guide can help configure Terraform using different methods.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxShout\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/how2shout\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-07T07:54:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T07:55:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1428\" \/>\n\t<meta property=\"og:image:height\" content=\"827\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Heyan Maurya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@h2smedia\" \/>\n<meta name=\"twitter:site\" content=\"@h2smedia\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Heyan Maurya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/\"},\"author\":{\"name\":\"Heyan Maurya\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/person\\\/102d73e20384ea409022d5bafddc0f72\"},\"headline\":\"How to Install Terraform on Ubuntu 24.04 Linux\",\"datePublished\":\"2025-02-07T07:54:56+00:00\",\"dateModified\":\"2025-02-07T07:55:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/\"},\"wordCount\":979,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp\",\"keywords\":[\"Linux\",\"server\",\"tutorial\",\"ubuntu\",\"ubuntu 18.04\",\"ubuntu 20.04\",\"Ubuntu 22.04\",\"ubuntu 24.04\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/\",\"name\":\"How to Install Terraform on Ubuntu 24.04 Linux - LinuxShout\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp\",\"datePublished\":\"2025-02-07T07:54:56+00:00\",\"dateModified\":\"2025-02-07T07:55:03+00:00\",\"description\":\"If you are not aware of the commands available to install Terraform and using Ubuntu Linux (24.04, 22.04, 20.04, etc.), then this guide can help configure Terraform using different methods.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp\",\"contentUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp\",\"width\":1428,\"height\":827,\"caption\":\"How to Install Terraform on Ubuntu 24.04 Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-terraform-on-ubuntu-24-04-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linux.how2shout.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Terraform on Ubuntu 24.04 Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#website\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/\",\"name\":\"LinuxShout\",\"description\":\"Find the open source solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"},\"alternateName\":\"Linux how2shout\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linux.how2shout.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\",\"name\":\"LinuxShout\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Linux-Shout-Logo.png\",\"contentUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Linux-Shout-Logo.png\",\"width\":503,\"height\":349,\"caption\":\"LinuxShout\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/how2shout\",\"https:\\\/\\\/x.com\\\/h2smedia\",\"https:\\\/\\\/instagram.com\\\/h2smedia\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/h2smedia\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/how2shout\",\"https:\\\/\\\/youtube.com\\\/h2smedia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/person\\\/102d73e20384ea409022d5bafddc0f72\",\"name\":\"Heyan Maurya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"caption\":\"Heyan Maurya\"},\"description\":\"I have a keen interest in all kinds of technologies, from consumer-tech to enterprise solutions. However, I am still trying to learn Linux and whatever the problems I face, trying to give solutions for the same, here...\",\"sameAs\":[\"https:\\\/\\\/www.how2shout.com\\\/\"],\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/author\\\/heyan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Terraform on Ubuntu 24.04 Linux - LinuxShout","description":"If you are not aware of the commands available to install Terraform and using Ubuntu Linux (24.04, 22.04, 20.04, etc.), then this guide can help configure Terraform using different methods.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Terraform on Ubuntu 24.04 Linux","og_description":"If you are not aware of the commands available to install Terraform and using Ubuntu Linux (24.04, 22.04, 20.04, etc.), then this guide can help configure Terraform using different methods.","og_url":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/","og_site_name":"LinuxShout","article_publisher":"https:\/\/www.facebook.com\/how2shout","article_published_time":"2025-02-07T07:54:56+00:00","article_modified_time":"2025-02-07T07:55:03+00:00","og_image":[{"width":1428,"height":827,"url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp","type":"image\/webp"}],"author":"Heyan Maurya","twitter_card":"summary_large_image","twitter_creator":"@h2smedia","twitter_site":"@h2smedia","twitter_misc":{"Written by":"Heyan Maurya","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#article","isPartOf":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/"},"author":{"name":"Heyan Maurya","@id":"https:\/\/linux.how2shout.com\/#\/schema\/person\/102d73e20384ea409022d5bafddc0f72"},"headline":"How to Install Terraform on Ubuntu 24.04 Linux","datePublished":"2025-02-07T07:54:56+00:00","dateModified":"2025-02-07T07:55:03+00:00","mainEntityOfPage":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/"},"wordCount":979,"commentCount":1,"publisher":{"@id":"https:\/\/linux.how2shout.com\/#organization"},"image":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp","keywords":["Linux","server","tutorial","ubuntu","ubuntu 18.04","ubuntu 20.04","Ubuntu 22.04","ubuntu 24.04"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/linux.how2shout.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/","url":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/","name":"How to Install Terraform on Ubuntu 24.04 Linux - LinuxShout","isPartOf":{"@id":"https:\/\/linux.how2shout.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#primaryimage"},"image":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp","datePublished":"2025-02-07T07:54:56+00:00","dateModified":"2025-02-07T07:55:03+00:00","description":"If you are not aware of the commands available to install Terraform and using Ubuntu Linux (24.04, 22.04, 20.04, etc.), then this guide can help configure Terraform using different methods.","breadcrumb":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#primaryimage","url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp","contentUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2025\/02\/How-to-Install-Terraform-on-Ubuntu-24.04-Linux.webp","width":1428,"height":827,"caption":"How to Install Terraform on Ubuntu 24.04 Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linux.how2shout.com\/how-to-install-terraform-on-ubuntu-24-04-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linux.how2shout.com\/"},{"@type":"ListItem","position":2,"name":"How to Install Terraform on Ubuntu 24.04 Linux"}]},{"@type":"WebSite","@id":"https:\/\/linux.how2shout.com\/#website","url":"https:\/\/linux.how2shout.com\/","name":"LinuxShout","description":"Find the open source solutions","publisher":{"@id":"https:\/\/linux.how2shout.com\/#organization"},"alternateName":"Linux how2shout","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linux.how2shout.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linux.how2shout.com\/#organization","name":"LinuxShout","url":"https:\/\/linux.how2shout.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linux.how2shout.com\/#\/schema\/logo\/image\/","url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2020\/06\/Linux-Shout-Logo.png","contentUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2020\/06\/Linux-Shout-Logo.png","width":503,"height":349,"caption":"LinuxShout"},"image":{"@id":"https:\/\/linux.how2shout.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/how2shout","https:\/\/x.com\/h2smedia","https:\/\/instagram.com\/h2smedia","https:\/\/www.linkedin.com\/company\/h2smedia\/","https:\/\/www.pinterest.com\/how2shout","https:\/\/youtube.com\/h2smedia"]},{"@type":"Person","@id":"https:\/\/linux.how2shout.com\/#\/schema\/person\/102d73e20384ea409022d5bafddc0f72","name":"Heyan Maurya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","caption":"Heyan Maurya"},"description":"I have a keen interest in all kinds of technologies, from consumer-tech to enterprise solutions. However, I am still trying to learn Linux and whatever the problems I face, trying to give solutions for the same, here...","sameAs":["https:\/\/www.how2shout.com\/"],"url":"https:\/\/linux.how2shout.com\/author\/heyan\/"}]}},"_links":{"self":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/27003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/comments?post=27003"}],"version-history":[{"count":10,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/27003\/revisions"}],"predecessor-version":[{"id":27018,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/27003\/revisions\/27018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/media\/27016"}],"wp:attachment":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/media?parent=27003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/categories?post=27003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/tags?post=27003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}