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