Installing my tooling with ASDF
Installing software with asdf
There are many package managers… but using asdf I can switch between Macos and Linux and upgrade my tooling on a regular basis. These are my notes after installing.
Make sure asdf is installed and configured
Make sure you have asdf installed, and it is updated to at least 0.18.0. There were some breaking changes so you may need it reinstalling. Refer to the install asdf and configure asdf.
Find your plugin for the software you want to install. Let us pick terraform.
asdf plugin list allFind the plugin from asdf-community
asdf plugin list all | grep asdf-community | grep terraform
terraform https://github.com/asdf-community/asdf-hashicorp.git
Add the plugin
asdf plugin add terraform
Find the version you are looking for
asdf list all terraform
1.13.0 1.13.1 1.13.2 1.13.3 1.13.4
install the version you are looking for
asdf install terraform 1.13.4
Downloading terraform version 1.13.4 from https://releases.hashicorp.com/terraform/1.13.4/terraform_1.13.4_linux_amd64.zip
The version is still not available
No version is set for command terraform Consider adding one of the following versions in your config file at /home/richard/.tool-versions terraform 1.13.4
Set the version
asdf set -u terraform 1.13.4
Terraform v1.13.4 on linux_amd64
Now for the aws cli
asdf plugin list all | grep asdf-community | grep awscli
No results…
asdf plugin list all | grep awscli asdf plugin add awscli
2.31.15 2.31.16 2.31.17 2.31.18
asdf install awscli 2.31.18 asdf set -u awscli 2.31.18