Installing GO on Amazon Linux 2 can be done within a few minutes since the GO exists in the default Amazon Linux 2 yum packages. Let’s dive into it.
Prerequisites
- Amazon Linux 2
- sudo access
Install GO on Amazon Linux 2
Step 1. To install the latest GO version update the packages.
sudo yum update
Step 2. To install it, run:
sudo yum install golang
Step 3. To verify the installation, run:
go version
Example output:
go version go1.15.14 linux/amd64
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.