This is a small note, but it is exactly the kind of small note I end up reusing.
When I install Terraform on a fresh Ubuntu host, I usually want two things:
- the official HashiCorp package source
- the ability to pin a specific version instead of blindly taking whatever is newest
Add the HashiCorp Apt Repository
| |
Check Available Versions
Before installing, inspect what versions the repository is offering:
| |
That is the step I especially like keeping in the note, because it makes version pinning feel intentional instead of improvised.
Install a Specific Version
In this case, I installed:
| |
Why This Post Exists
This is not a Terraform tutorial. It is just the shortest useful record of how I installed a pinned version on Ubuntu 24.04 without guessing the repository setup from memory.