Skip to content

Installation

mar edited this page May 25, 2023 · 2 revisions

Download a binary

You can download the latest pre-built binary for your architecture/os from the harlock release page.

Pre-built binaries are just statically linked single binaries; the preferred installation method is to just download the binary and put it into a folder that is within your system $PATH.

Debian-like

If you are on a Debian based system, you can install harlock through a .deb package that can be obtained from the release page. For example, to install harlock v0.4.1 on an amd64 system, you can do the following:

wget https://github.com/Abathargh/harlock/releases/download/v0.4.1/harlock_0.4-1_amd64.deb
apt install ./harlock_0.4-1_amd64.deb

Install without cloning

Required: Go 1.18+

If you have installed the go toolchain, you can directly install the interpeter using the following command:

go install github.com/Abathargh/harlock/cmd/harlock@latest

Changing the latest bit with the version you desire to download, if you do not want the latest committed version.

For example, if you wanted to install version v0.4.1, you would use the following command:

go install github.com/Abathargh/harlock/cmd/harlock@v0.4.1

Build from source

Builds are executed using the linker flags to strip the debug symbols from the binaries, to achieve smaller sized executables.

make build    # build in place
make install  # build and install in $GOPATH/bin
Clone this wiki locally