There's a variety of options to install Core-geth. Choose your destiny!
If you just want to download and run geth or any of the other tools here, this is the quickest and simplest way. Binary archives are published at https://github.com/etclabscore/core-geth/releases.
wget https://github.com/etclabscore/core-geth/releases/download/v1.11.5/core-geth-linux-v1.11.5.zip # Download release for linux sudo unzip core-geth-linux-v1.11.5.zip -d /bin/ # Unzip and move contents to /bin/ directory geth version # Check install
Docker is one of the easiest ways to install Core-geth on your machine. Docker images are automatically published on Docker Hub. All runnable examples below are for images limited to
geth. For images including the full suite of tools available from this source, use the Docker Hub tag prefix
etclabscore/core-geth:alltools.latest, or the associated Docker file directly
docker pull etclabscore/core-geth:latest # pull latest image
Alternatively, you can pull an image based on the version tag of the "docker image":
docker pull etclabscore/core-geth:version-1.11.1 # pull image based on specific <tag>
or build from image from source:
git clone https://github.com/etclabscore/core-geth.git cd core-geth docker build -t=core-geth .
Or with all tools:
docker build -t core-geth-alltools -f Dockerfile.alltools .
Finally, run the Core-geth image with
Docker run and desired arguments:
docker run -d \ --name core-geth \ -v $LOCAL_DATADIR:/root \ -p 30303:30303 \ -p 8545:8545 \ etclabscore/core-geth \ --classic \ --rpc --rpcport 8545
This will start
geth in fast-sync mode with a DB memory allowance of 1GB just as the
above command does. It will also create a persistent volume in your
saving your blockchain, as well as map the default devp2p and JSON-RPC API ports.
Do not forget
--rpcaddr 0.0.0.0, if you want to access RPC from other containers
and/or hosts. By default,
geth binds to the local interface and RPC endpoints is not
accessible from the outside.
sudo snap install go --classic
sudo apt-get install -y build-essential
Once the dependencies are installed, it's time to clone and build the source:
git clone https://github.com/etclabscore/core-geth.git cd core-geth make all ./build/bin/geth --help