> For the complete documentation index, see [llms.txt](https://ecp.gitbook.io/how-to-guides-for-coincashew-method-cardano-spos/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ecp.gitbook.io/how-to-guides-for-coincashew-method-cardano-spos/maintenance-and-daily-operations/how-to-guides-for-spos-using-coincashew-method/update-node-and-cli-to-8.0.0.md).

# Update Node and CLI to 8.0.0

{% hint style="info" %}
Credits to <img src="https://earncoinpool.com/images/coin_v3.png" alt="" data-size="line"> [Earn Coin Pool](https://earncoinpool.com/) for documenting the procedure.
{% endhint %}

{% hint style="danger" %}
Please note after updating it will take up to 10 hours maybe more to sync block replay.
{% endhint %}

## Step 1 - Download and install the new version of libsodium

```
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout dbb48cc
./autogen.sh
./configure
make
make check
sudo make install
```

## Step 2 - GHC and Cabal Check&#x20;

Make sure you are using ghc 8.10.7 and cabal 3.6.2.0. If already installed you can skip this step.

```
ghcup upgrade
ghcup install ghc 8.10.7
ghcup set ghc 8.10.7
ghcup install cabal 3.6.2.0
ghcup set cabal 3.6.2.0

ghc --version
cabal --version
```

## Step 3 - Download latest cardano-node git and checkout latest branch&#x20;

```
cd $HOME/git

git clone https://github.com/input-output-hk/cardano-node.git cardano-node2

cd cardano-node2/

cabal update

git fetch --all --recurse-submodules --tags

git checkout tags/8.0.0
```

## Step 4 - Build the node

If you have tmux, it is recommended to open tmux by typing `tmux` this will allow to run these commands to build the node without terminal timing out.

```
cd $HOME/git/cardano-node2

cabal configure -O0 -w ghc-8.10.7

echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" >> cabal.project.local
cabal build cardano-node cardano-cli
```

## Step 5 - Check cardano-cli and cardano-node that the build was successful

```
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") version
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") version
```

if 8.0.0 - and you were using tmux, close tmux by typing `exit`

## Step 6 - Backup your configuration files

Now is a good time to backup your configuration files before we adjust them. Please backup with your preferred method.

## Step 7 - Download the new mainnet conway genesis file

```
cd $NODE_HOME
wget https://book.world.dev.cardano.org/environments/mainnet/conway-genesis.json
mv conway-genesis.json mainnet-conway-genesis.json
```

## Step 8 - Update mainnet-conf json

```
cd $NODE_HOME
sudo nano mainnet-config.json
```

Add the following lines after `"ByronGenesisHash"` line:

```
  "ConwayGenesisFile": "mainnet-conway-genesis.json",
  "ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1",
```

## Step 9 - Shut down the node and move the binaries to your bin

```
sudo systemctl stop cardano-node
```

```
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node
```

## Step 10 - Check that successful version upgrades then start back up Cardano node&#x20;

```
cardano-node version
cardano-cli version
```

If 8.0.0 move to next step

## Step 11 - Update and restart your instance

```
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot
```

## Step 12 - Clean up&#x20;

```
cd $HOME/git/

rm -rf cardano-node-old

mv cardano-node cardano-node-old

mv cardano-node2 cardano-node
```

## Additional Steps

Copy the cardano-cli binaries to your air gap machine. You can copy from your /usr/local/bin or from the new build to a USB drive

### Congratulations you did it!

## Contributors&#x20;

Thanks to the following pools for helping to put together these guides. Please consider delegating to their pools to support them.  Are you a pool? Consider buying them a coffee

![](https://img.cexplorer.io/7/e/1/9/f/pool16cdtqyk0fvxzfkhjg3esjcuty4tnlpds5lj0lkmqmwdjyzaj7p8.png)  [Earn Coin Pool - Ticker: ECP](https://cexplorer.io/pool/pool16cdtqyk0fvxzfkhjg3esjcuty4tnlpds5lj0lkmqmwdjyzaj7p8)
