The node is a binary program. You can either download the source code and then build the binary program, or you can download the pre-built binary. You can do either of the below. You don’t need to do both.

From source

First clone our Github repo (you can skip this step if you’ve done this before):

git clone https://github.com/ava-labs/avalanchego.git

Then move to the avalanchego directory:

cd avalanchego

Pull the latest code:

git pull

Check that your local code is up to date. Do:

git rev-parse HEAD

and check that the first 7 characters printed match the Latest commit field on our Github.

Now build the binary:

./scripts/build.sh

This should print:

Build Successful

You can check what version you’re running by doing:

./build/avalanchego --version

You can run your node with:

./build/avalanchego

Download Binary

Go to our releases page and select the release you want (probably the latest one.)

Under Assets, select the appropriate file.

For MacOS:

Download the file named: avalanche-osx-<VERSION>.zip

Unzip the file with: unzip avalanche-osx-<VERSION>.zip

The resulting folder, avalanche-<VERSION>, contains the binaries.

You can run the node with: ./avalanche-<VERSION>/avalanche

For Linux x86:

Download the file named: avalanche-linux-<VERSION>.tar.gz

Unzip the file with: tar -xvf avalanche-linux-<VERSION>.tar.gz

The resulting folder, avalanche-<VERSION>, contains the binaries.

You can run the node with: ./avalanche-<VERSION>/avalanche

Note: The Linux binaries are compiled for AMD64 (x86-64) architectures. For ARM platforms, like the Raspberry Pi, please build from source.

Chat with Ava Labs | Validate on Avalanche | Build on Avalanche

Did this answer your question?