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 odinAdd ~/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.odinand 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 -lThose commands have lots of options. See:
$ odin build -help
$ odin run -helpEditor Support
sudo apt install sublime-text- install Package Control (https://packagecontrol.io/installation)
- 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.