An open source programming language built to craft simple, reliable, and efficient software.

Go packages installation

Go packages from upstream

Upstream projects can be installed with go get command. Package names follows the import paths so to install github.com/gorilla/context from GitHub run:

$ go get github.com/gorilla/context

If the requested package comes with an executable binary, you will find it in $GOPATH/bin. If you have not added that to your PATH environment variable yet, you can do so with these commands:

$ echo 'export PATH=$PATH:$GOPATH/bin' >> $HOME/.bashrc
$ source $HOME/.bashrc

Go packages from Fedora

Alternatively, various Go packages are packaged and available in Fedora.

The package name idiom is that the import paths of libraries are fully qualified domain names. This way you have clarity to the precise upstream being used. By truncating domain names, using ‘-‘ instead of ‘/’ and appending -devel suffix you know how is the associated Fedora package called. For example, ‘github.com/gorilla/context’ would become golang-github-gorilla-context-devel. Similarly, the ‘code.google.com/p/go.net’ repository would become golang-googlecode-net-devel.

To install golang-googlecode-net-devel package, you use DNF as usual:

$ sudo dnf install golang-googlecode-net-devel

Authors: Adam Samalik, Josef Stribny, Josef Strzibny, Rodolfo Carvalho