INTRODUCTION:-
Terraform offer package repositories for RedHat Enterprise Linux, Fedora, and Amazon Linux systems, which allow you to install Terraform using the yum install or dnf installcommands.
If you are instead using Debian or Ubuntu, you might prefer to install Terraform from our APT repositories.
USE CASE:-
To install terraform package in deprecated as well as active Linux RHEL & CentOS version
PROCEDURE:-
These are the supported RPM-based Linux distributions for which release are available at https://rpm.releases.hashicorp.com. It could be installed following this article
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/$release/hashicorp.repo
If you want to install on any OS distribution which reached end of life.
- Hashicorp removes end-of-life Linux versions/releases from {deb|rpm}.releases.hashicorp.com on a regular basis. It is encouraged to our users to routinely upgrade to the most stable OS versions or utilise packages on the archive site for deprecated versions to avoid disruptions.
- The archive site is not a live repository, it contains only packages, no metadata files. That's why anyone can’t use
archive.releases.hashicorp.comin their package manager configurations. - We can install via .zip file using wget or download the packages manually from https://archive.releases.hashicorp.com/ and create our own local repository. One can generate their own metadata, allowing their hosts to then use the local repo via package managers.
ADDITIONAL INFORMATION:-
https://www.hashicorp.com/blog/announcing-the-linux-package-archive-site