Red Hat Enterprise Linux as well as CentOS provide the CLI tool yum-utils, which is used to manage repositories, install source or debug packages, and search for information related to application repositories. The command yum-config-manager
is to add or manage repositories that you'd like used for installing applications from. run:
sudo yum install -y yum-utils
To add the official HashiCorp Linux repository using yum-config-manager
, run:
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
You may then use the example commands below to lookup existing RPM packages in the repository.
# This will show all available HSM Packages in the repository:
yum --showduplicates list vault-enterprise-hsm
# Available Packages
# vault-enterprise-hsm.x86_64 1.7.7+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.7.8+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.7.9+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.7.10+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.8.6+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.8.7+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.8.8+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.8.9+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.9.0+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.9.1+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.9.2+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.9.3+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.9.4+ent-1 hashicorp
# vault-enterprise-hsm.x86_64 1.10.0+ent-1 hashicorp
# This will show all available enterprise packages in the repository
yum --showduplicates list vault-enterprise
Here are some example of how specific and latest version of Vault can be installed from the HashiCorp repository:
# Download & Install the latest (1.10.0, at the time of writing this article) ENT+HSM binary.
sudo yum -y install vault-enterprise-hsm.x86_64
# if you like to install any specific package - you can use this command with the specific versions.
sudo yum -y install vault-enterprise-hsm-1.9.4+ent-1.x86_64
# Download & Install the latest (1.10.0, at the time of writing this article) ENT binary.
sudo yum -y install vault-enterprise
# Download & Install the latest OSS binary
sudo yum -y install vault
To verify your current Vault version, run:
vault version
# OR
vault -v