Skip to content

Installation

Odyn shells out to git and builds with the Odin compiler, so you need both on your PATH:

If you’re currently using or have the legacy Rust version of Odyn, please remove, backup, or move the binary as this process will likely rewrite or fail at the presence of an existing Odyn binary in your installation path.

The installer fetches the source, builds it, and asks where to put the binary (system-wide, per-user, or a custom path). Download it and run it (it is interactive, so run it from a file rather than piping it into a shell):

Terminal window
curl -fsSLO https://razkar.codeberg.page/odyn/install.sh
sh install.sh
rm install.sh

The installer scripts respect TAG and NIGHTLY for non-interactive builds. With neither set, the latest tag from the remote is fetched and built automatically.

  • TAG=<tag> sets a specific tag (e.g. TAG=v0.1.0)
  • NIGHTLY=1 builds from the default branch

build.sh supports PREFIX=<dir> to set the install prefix (default /usr/local).

Example usage:

Terminal window
# Install a tagged release non-interactively
TAG=v0.1.0 sh install.sh
# Build from local source and install to a custom prefix
PREFIX=$HOME/.local ./build.sh

Confirm it worked:

Terminal window
odyn --version

While the installer script already git-clones and builds on its own, you can have other options, like this repository’s Makefile or build.sh.

Terminal window
git clone https://codeberg.org/razkar/odyn.git
cd odyn

Pick either ONE:

Terminal window
# Build and install with the Makefile
make install
Terminal window
# Install with the build script
PREFIX=$HOME/.local ./build.sh
Terminal window
# Or, just build the binary
make build
# or: odin build . -collection:deps=deps -out:odyn