Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

v1.20.7

Latest
Compare
Choose a tag to compare
@ernado ernado released this 02 Aug 18:31
· 1 commit to main since this release
3f6eb3b

Release

1.20.7

File name Kind Size SHA256
go1.20.7.linux-riscv64.tar.gz Archive 154MB 135158f281e2d7bf5ff5d426394ad038870d7b288e8f987426490c717f6fb390
go-linux-riscv64-bootstrap.tbz Bootstrap 88MB 45d0c69936eedadad28c871e308da18cd3395d65f452a172dbcc2ba95e761b78
go1.20.7.src.tar.gz Source 24MB 2c5ee9c9ec1e733b0dbbc2bdfed3f62306e51d8172bf38f4f4e542b27520f597

Download

wget "https://github.com/go-riscv/go/releases/download/v1.20.7/go1.20.7.linux-riscv64.tar.gz"

Verify

echo "135158f281e2d7bf5ff5d426394ad038870d7b288e8f987426490c717f6fb390 go1.20.7.linux-riscv64.tar.gz" | sha256sum --check

Install

sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.7.linux-riscv64.tar.gz

Add to PATH

You can create /etc/profile.d/go.sh.

sudo nano /etc/profile.d/go.sh

Write following contents:

#!/bin/bash
# sets envs for golang
if [ -z "$GOPATH" ]; then
  export GOROOT="/usr/local/go"
  export GOPATH="/go"
  export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"
fi

Save and make it executable:

sudo chmod +x /etc/profile.d/go.sh

You can check it without creating new shell session:

source /etc/profile.d/go.sh
go version

Verify signature

Import the public key:

gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '943040B9817AC4C7'

Download the signature:

wget "https://github.com/go-riscv/go/releases/download/v1.20.7/go1.20.7.linux-riscv64.tar.gz.asc"

Verify the signature:

gpg --batch --verify go1.20.7.linux-riscv64.tar.gz.asc go1.20.7.linux-riscv64.tar.gz