Odin Notes and Examples
(top-level)

Getting Started

To install Odin on GNU/Linux, download the latest release (.tar.gz) as linked to from https://odin-lang.org/docs/install/. Then:

$ sudo apt install clang  # prereq
$ mv ~/Downloads/odin-linux-amd64-dev-2026-04.tar.gz  ~/opt
$ cd ~/opt
$ tar xzf odin-linux-amd64-dev-2026-04.tar.gz
$ ln -s odin-linux-amd64-nightly+2026-04-02 odin

Add ~/opt/odin to your PATH in ~/.bashrc:

export PATH="/home/john/opt/odin:$PATH"

To confirm that all is well, open a new terminal window and run odin help.

Now, to start your own project, do:

$ mkdir my-proj
$ cd my-proj
$ touch foo.odin

and into that foo.odin file, put:

package main

import "core:fmt"

main :: proc() {
    fmt.println("hey!")
}

Finally, run it

$ odin run .
hey!

Or just build your executable and leave it in your current directory:

$ odin build .
$ ls -l

Those commands have lots of options. See:

$ odin build -help
$ odin run -help

Editor Support

  1. sudo apt install sublime-text
  2. install Package Control (https://packagecontrol.io/installation)
  3. Install Odin support: Ctrl-Shift-p, Package Control: Install Odin <RET>

See also https://github.com/jakubtomsu/awesome-odin?tab=readme-ov-file#editor-support.