Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 22.04 - Install OpenTofu

Steps

curl -s https://packagecloud.io/install/repositories/opentofu/tofu/script.deb.sh?any=true -o /tmp/tofu-repository-setup.sh \
  && sudo bash /tmp/tofu-repository-setup.sh \
  && rm /tmp/tofu-repository-setup.sh \
  && sudo apt install tofu -y

This worked on Ubuntu 20.04 as well and installed OpenTofu 1.6.1 at the time of writing this note.

References

Last updated: 2nd February 2024
First published: 16th November 2023

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch