DEV Community

Cover image for Installing Go 1.23.6 on Rocky 9.5 Minimal
Elias Baez
Elias Baez

Posted on

Installing Go 1.23.6 on Rocky 9.5 Minimal

nixnib 0001.0

sudo dnf --enablerepo=devel install wget tar

wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz

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

vim ~/.bash_profile

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

source ~/.bash_profile

go version

mkdir go && cd go

mkdir src pkg bin test

cd test

vim test.go:

import "fmt"

func main() {
    fmt.Println("test")
}
Enter fullscreen mode Exit fullscreen mode

go build test.go

go run test.go

./test

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more