Anchor Installation Guide
This guide provides step-by-step instructions for installing Anchor.
Recommended System Requirements
Anchor itself is a light-weight client when run alone. However, as Anchor needs to connect to a beacon node and an execution client, this implies that a complete setup will require the hardware specifications equivalent to running an Ethereum node.
Hardware | Hoodi testnet |
---|---|
CPU | AMD Ryzen, Intel Broadwell, ARMv8 or newer |
Memory | 16 GB RAM |
Storage | 200 GB |
1. Download the Latest Release from GitHub
- Visit the Anchor Releases page.
- Download the appropriate binary for your operating system.
- Extract the file if necessary and move the binary to a location in your
PATH
(e.g.,/usr/local/bin/
).
Example
# General download link format
# Replace <version> and <platform> with the appropriate values.
wget https://github.com/sigp/anchor/releases/download/<version>/anchor-<version>-<platform>.tar.gz
tar -xvf anchor-<version>-<platform>.tar.gz
# Specific version example
https://github.com/sigp/anchor/releases/download/v0.3.1/anchor-v0.3.1-x86_64-unknown-linux-gnu.tar.gz
tar -xvf anchor-v0.3.1-x86_64-unknown-linux-gnu.tar.gz
sudo mv anchor /usr/local/bin/
Verify the installation:
anchor node --version
2. Run Anchor Using Docker
-
Pull the latest Anchor Docker image:
docker pull sigp/anchor:latest
-
Verify the installation:
docker run --rm -it sigp/anchor:latest node --version
3. Clone and Build Locally
-
Clone the Anchor repository:
git clone https://github.com/sigp/anchor.git cd anchor
-
Build the Anchor binary:
cargo build --release
The binary will be located in
./target/release/
. -
Move the binary to a location in your
PATH
:sudo mv target/release/anchor /usr/local/bin/
Verify the installation:
anchor node --version