go, alpine linux,

Install Go on Alpine Linux

Sep 28, 2022 · 1 min read · Post a comment

If you need a minimalistic docker image for building Go projects that’s definitely Alpine Linux. The aim here is to show you how to install Go on Alpine Linux.

Prerequisites

  • Alpine Linux
  • sudo privileges

Install Go on Alpine Linux

Step 1. Download Go binary.

wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz

Step 2. Unzip it and move into /usr/local/.

tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz

Step 3. Export the Go bin path.

export PATH=$PATH:/usr/local/go/bin

Step 4. Verify the installation.

go version

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.