Installation

Via go standard tools

As netorcai is implemented in Go, it can be built with the go command. Installation steps are as follows.

  1. Install a recent Go version.
  2. Run go get github.com/netorcai/netorcai/cmd/netorcai. This will download and compile netorcai. The executable will be put into ${GOPATH}/bin (if the GOPATH environment variable is unset, it should default to ${HOME}/go or %USERPROFILE%\go).

In brief.

go get github.com/netorcai/netorcai/cmd/netorcai
${GOPATH:-${HOME}/go}/bin/netorcai --help

Via Nix

Nix is a package manager with amazing properties that is available on Linux-like systems. It stores all the packages in a dedicated directory (usually /nix/store), which avoids interfering with classical system packages (usually in /usr).

Once Nix is installed on your machine (instructions on Nix’s web page), packages can be installed with nix-env --install (-i). The following command shows how to install netorcai with Nix.

# Install latest release.
nix-env -f https://github.com/netorcai/netorcaipkgs/archive/master.tar.gz -iA netorcai

# Alternatively, install latest commit.
nix-env -f https://github.com/netorcai/netorcaipkgs/archive/master.tar.gz -iA netorcai_dev