Installation

Erigon Installation Options

To install Erigon, begin by choosing an installation method suited to your operating system and technical preference. Options range from the simplest to the most complex, including pre-built images, containers, or source compilation.

All Operating Systems

Docker

Docker is like a portable container for software. It packages Erigon and everything it needs to run, so you don't have to install complicated dependencies on your computer.

This Docker image is fully supported on Linux, macOS, and Windows.

(Note: The container itself is built on multi-platform Linux architectures (linux/amd64 and linux/arm64), which is handled automatically by your Docker setup.)

Prerequisites

Docker Engine if you run Linux or Docker Desktop if you run macOS/Windows.

General Info

  • The Docker images feature several binaries, including: erigon, downloader, evm, caplin, capcli, integration, rpcdaemon, sentry, and txpool.

  • The multi-platform Docker image is available for linux/amd64/v2 and linux/arm64 platforms and is now based on Debian Bookworm. There's no need to pull a different image for another supported platform.

  • All build flags are now passed to the release workflow, allowing users to view previously missed build information in the released binaries and Docker images. This change is also expected to result in better build optimization.

  • Docker images now contain the label org.opencontainers.image.revision, which refers to the commit ID from the Erigon project used to build the artifacts.

  • With recent updates, all build configurations are now included in the release process. This provides users with more comprehensive build information for both binaries and Docker images, along with enhanced build optimizations.

Download and start Erigon in Docker

Here are the steps to download and start Erigon in Docker.

1. Check which version you want to download

Check in the GitHub Release Notes page which version you want to download (normally latest is the best choice).

2. Download Erigon container

Download the chosen version replacing <version_tag> with the actual version:

docker pull erigontech/erigon:<version_tag>

For example:

docker pull erigontech/erigon:v3.2.2

3. Start the Erigon container

Start the Erigon container in your terminal:

docker run -it erigontech/erigon:<version_tag> <flags>

For example:

docker run -it erigontech/erigon:v3.2.2 --chain=hoodi --prune.mode=minimal --datadir /erigon-data
  • -v connects a folder on your computer to the container (must have authorization)

  • -it lets you see what's happening and interact with Erigon

  • --chain=hoodi specifies which network to sync

  • --prune.mode=minimal tells Erigon to use minimal Sync Mode

  • --datadir tells Erigon where to store data inside the container

Linux/macOS

Pre-built Binaries (Linux Only)

1. Select Your Processor Architecture and Download

Go to the Erigon releases page on GitHub and select the latest stable version (e.g., 3.2.2) or whichever version you prefer.

Download the appropriate binary file for your processor architecture:

Processor Type

Binary File Type

Example File Name

64-bit Intel/AMD

Debian Package (.deb)

erigon_3.2.2_amd64.deb

64-bit ARM

Debian Package (.deb)

erigon_3.2.2_arm64.deb

64-bit Intel/AMD

Compressed Archive (.tar.gz)

erigon_v3.2.2_linux_amd64.tar.gz

64-bit Intel/AMDv2

Compressed Archive (.tar.gz)

erigon_v3.2.2_amd64v2.tar.gz

64-bit ARM

Compressed Archive (.tar.gz)

erigon_v3.2.2_linux_arm64.tar.gz

Note that the Release Page Assets table contains also the checksum for each file and a checksum file.

2. Verifying Binary Integrity with Checksums

To verify the integrity and ensure your downloaded Erigon file hasn't been corrupted or tampered with, use the SHA256 checksums provided in the official release by following these steps:

2.1 Generate the Checksum of Your Downloaded File

Next, use the sha256sum command followed by the name of your downloaded binary (e.g., erigon_v3.x.x_linux_amd64.tar.gz).

sha256sum <DOWNLOADED_FILE_NAME>

Example with a tar.gz file:

sha256sum erigon_v3.2.2_linux_amd64.tar.gz

This command will output a long string (the computed checksum) followed by the file name.

2.2 Compare the Checksums

Compare the checksum found in the previous step with those in the Release Notes Assets table or the erigon_v3.x.x_checksums.txt file in the same table.

The two checksum strings must match exactly. If they do not match, the file is corrupted, and you should delete it and download it again.

3. Installing the Binary Executable

After downloading and verifying the checksum, follow the instructions below based on the file type you chose.

a. Using Debian Package (.deb)

This method uses your distribution's package manager (like dpkg) to install Erigon system-wide.

  1. Navigate to the directory where you downloaded the pre-built binary, e.g. Downloads:

    cd ~/Downloads
  2. Install the package:

    sudo dpkg -i erigon_3.x.x_amd64.deb

    (Replace the filename with your downloaded version)

b. Using Compressed Archive (.tar.gz)

This method gives you a standalone executable that can be run from any directory.

  1. Extract the archive:

    tar -xzf erigon_v3.x.x_linux_amd64.tar.gz

    (Replace the filename with your downloaded version)

  2. Move the resulting erigon executable to a directory included in your system's $PATH(e.g., $/usr/local/bin) to run it from anywhere:

    sudo mv erigon /usr/local/bin/

4. Running Erigon

After installation, you can run Erigon from your terminal:

erigon [options]
Build from Source

1. Software Requirements

If you intend to build Erigon from source, you must first meet the necessary prerequisites.

1.1 Git

Git is a tool that helps download and manage the Erigon source code. To install Git, visit https://git-scm.com/downloads.

1.2 Build essential and Cmake (Linux only)

Install Build-essential and Cmake:

sudo apt install build-essential cmake -y

1.3 Go Programming Language

Erigon utilizes Go (also known as Golang) version 1.24 or newer for part of its development. It is recommended to have a fresh Go installation. If you have an older version, consider deleting the /usr/local/go folder (you may need to use sudo) and re-extract the new version in its place.

To install the latest Go version, visit the official documentation at https://golang.org/doc/install.

1.4 C++ Compiler

This turns the C++ part of Erigon's code into a program your computer can run. You can use either Clang or GCC:

2. Building Erigon from Source

The basic Erigon configuration is suitable for most users who simply want to run a node. To ensure you are building a specific, stable release, use Git tags.

2.1 Clone the Erigon repository

First, clone the Erigon repository (you do not need to specify a branch):

git clone https://github.com/erigontech/erigon.git
cd erigon

2.2 Check Out the Desired Stable Version (Tag)

Next, fetch all available release tags:

git fetch --tags

Check out the desired version tag by replacing <tag_name> with the version you want. Normally latest stable version is the best, check the official Release Notes. For example:

git checkout v3.2.2

2.3 Compile the Software

Compile the Erigon binary using the make command.

Standard Compilation:

make erigon

Fast Compilation (Recommended): to significantly speed up the process, specify the number of processors you want to use with the -j<n> option, where <n> is the number of processor you want to use (we recommend using a number slightly less than your total core count):

make -j<n> erigon

The resulting executable binary will be created in the ./build/bin/erigon path.

3. Running Erigon

After installation, you can run Erigon from your terminal:

./build/bin/erigon [options]

Windows

Native Compilation

1. Software Prerequisites

You must install the following software and set the below environment variables before compiling Erigon.

1.1 Chocolatey

Install Chocolatey package manager by following these instructions.

Once your Windows machine has the above installed, open the Command Prompt by typing "cmd" in the search bar and check that you have correctly installed Chocolatey:

choco -v

1.2 cmake, make, mingw

Now you need to install the following components: cmake, make, mingw by:

choco install cmake make mingw

1.3 Git

Git is a tool that helps download and manage the Erigon source code. To install Git, visit https://git-scm.com/downloads.

1.4 Go Programming Language

Erigon utilizes Go (also known as Golang) version 1.24 or newer for part of its development. It is recommended to have a fresh Go installation. If you have an older version, consider deleting the /usr/local/go folder (you may need to use sudo) and re-extract the new version in its place.

To install the latest Go version, visit the official documentation at https://golang.org/doc/install.

1.5 Set the System Environment Variable

Make sure that the Windows System Path variable is set correctly. Use the search bar on your computer to search for “Edit the system environment variable”.

Click the “Environment Variables...” button.

Look down at the "System variables" box and double click on "Path" to add a new path (or select and click on "Edit").

Then click on the "New" button and paste the following path:

 C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin

2. Clone the Erigon repository

Open the Command Prompt and type the following:

git clone https://github.com/erigontech/erigon.git
cd erigon

Next, fetch all available release tags:

git fetch --tags

Check out the desired version tag by replacing <tag_name> with the version you want. Normally latest stable version is the best, check the official Release Notes. For example:

git checkout v3.2.2

You might need to change the ExecutionPolicy to allow scripts created locally or signed by a trusted publisher to run. Open a Powershell session as Administrator and type:

Set-ExecutionPolicy RemoteSigned

3. Compiling Erigon

This section outlines the two primary methods for compiling the Erigon client and its associated modules directly from the source code on a Windows environment. Compiling from source ensures you are running the latest version and gives you control over the final binaries.

You have two alternative options for compilation, both utilizing PowerShell: a quick, graphical method via File Explorer, and a more controlled, command-line method. All successfully compiled binaries will be placed in the .\build\bin\ subfolder of your Erigon directory.

Method

Pro

Con

a. File Explorer (wmake.ps1)

Fastest and simplest; requires minimal command-line interaction.

Less control over which specific component is built (builds all modules by default).

b. PowerShell CLI

Provides granular control, allowing you to compile only specific components (e.g., just erigon or rpcdaemon).

Requires CLI familiarity and an additional step to modify the ExecutionPolicy for script permission.

a. File Explorer (wmake.ps1)

This is the fastest way which normally works for everyone. Open the File Explorer and go to the Erigon folder, then right click the wmake file and choose "Run with PowerShell".

PowerShell will compile Erigon and all of its modules. All binaries will be placed in the .\build\bin\ subfolder.

b. PowerShell CLI

In the search bar on your computer, search for “Windows PowerShell” and open it.

Change the working directory to "erigon"

cd erigon

Before modifying security settings, ensure PowerShell script execution is allowed in your Windows account settings using the following command:

Set-ExecutionPolicy Bypass -Scope CurrentUser -Force

This change allows script execution, but use caution to avoid security risks. Remember to only make these adjustments if you trust the scripts you intend to run. Unauthorized changes can impact system security. For more info read Set-Execution Policy documentation.

Now you can compile Erigon and its components:

.\wmake.ps1

The executable binary erigon.exe should have been created in the .\build\bin\ subfolder.

You can use the same command to build other binaries such as RPCDaemon, TxPool, Sentry and Downloader.

4. Running Erigon

To make Erigon executable from anywhere from your terminal repeat step 1.5 and add Erigon executable path

C:\Users\your-user\erigon.\build\bin\

You can now start Erigon by simply using:

erigon.exe [options]
Window Subsystem for Linux (WSL)

WSL enables you to run a complete GNU/Linux environment natively within Windows, offering Linux compatibility without the performance and resource overhead of traditional virtual machines.

Installation and Version

Building Erigon

Once WSL2 is set up, you can build and run Erigon exactly as you would on a regular Linux distribution.

Performance and Data Storage

The location of your Erigon data directory (datadir) is the most crucial factor for performance in WSL.

Data Location

Performance & Configuration

Recommended: Native Linux Filesystem (e.g., in your Linux home directory)

Optimal Performance. Erigon runs without restrictions, and the embedded RPC daemon works efficiently.

Avoid: Mounted Windows Partitions (e.g., /mnt/c/, /mnt/d/)

Performance is reduced as the native Windows drives are mounted using DrvFS (a slower network file system). This affects MDBX database access, and complicates filesystem operations that expect unix-like behaviour. Setting automount.options=metadata in /etc/wsl.conf in your distribution is recommended, but not required. Note that Docker on Windows is also affected.

RPC Daemon Configuration

The choice of data location directly impacts how you must configure the RPC daemon:

Scenario

RPC Daemon Requirement

Data on Native Linux Filesystem (Recommended)

Use the Embedded RPC Daemon. This is the highly preferred and most efficient method.

Data on Mounted Windows Partition

The rpcdaemon must be configured as a remote DB even when running on the same machine.

Networking Notes

Be aware that the default WSL2 environment uses its own internal IP address, which is distinct from the IP address of your Windows host machine.

If you need to connect to Erigon from an external network (e.g., opening a port on your home router for peering on port 30303), you must account for this separate WSL2 IP address when configuring NAT on your router. Alternatively consider Mirrored mode networking.

Once you have Erigon installed, you can see Basic Usage to configure your node.

Basic Usage

Last updated

Was this helpful?