How to update terraform on Ubuntu using CLI…

Why updating?

ubuntu@terraform:~$ terraform –version
Terraform v1.3.1
on linux_arm64

Your version of Terraform is out of date! The latest version
is 1.3.9. You can update by downloading from

Downloading and unzipping the update

ubuntu@terraform:~$ curl –output
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.7M 100 16.7M 0 0 24.6M 0 –:–:– –:–:– –:–:– 24.6M
ubuntu@terraform:~$ unzip
inflating: terraform

Move to the correct location

ubuntu@terraform:~$ sudo mv terraform /usr/local/bin
ubuntu@terraform:~$ terraform –version

Terraform v1.3.9
on linux_arm64

  • provider v3.46.0