Installing Age Encryption Tool
What is Age?
age is a simple, modern and secure file encryption tool, format, and Go library. It features small explicit keys, no config options, and UNIX-style composability.It is commonly used in tandem with Mozilla SOPS.It’s open source and you can read more about it on the GitHub repo. Looking for a tutorial on how use this? Checkout this video on how to use SOPS and Age for your Git Repos!
Install
We want to get the latest release of age
so we need to look at their github repo for the latest version.
1
2
AGE_LATEST_VERSION=$(curl -s "https://api.github.com/repos/FiloSottile/age/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
Then we’ll use curl
to download the latest .tar.gz
1
2
curl -Lo age.tar.gz "https://github.com/FiloSottile/age/releases/latest/download/age-v${AGE_LATEST_VERSION}-linux-amd64.tar.gz"
Then we’ll want to extract age.tar.gz
1
tar xf age.tar.gz
Then we’ll move both binaries (age
and age-keygen
) to /usr/local/bin
so we can use them
1
2
sudo mv age/age /usr/local/bin
sudo mv age/age-keygen /usr/local/bin
Then we’ll clean up our downloads and extractions
1
2
rm -rf age.tar.gz
rm -rf age
Then we can test to make sure age
and age-keygen
are working by running
1
age -version
1
age-keygen -version
Uninstall
To uninstall, it’s as simple as removing the binaries
1
2
sudo rm -rf /usr/local/bin/age
sudo rm -rf /usr/local/bin/age-keygen
Links
⚙️ See all the hardware I recommend at https://l.technotim.live/gear
🚀 Don’t forget to check out the 🚀Launchpad repo with all of the quick start source files