> For the complete documentation index, see [llms.txt](https://service.block-pro.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://service.block-pro.net/testnet/0g/upgrade.md).

# Upgrade

Latest Version: v0.4.0

### Download and build upgrade binaries <a href="#download-and-build-upgrade-binaries" id="download-and-build-upgrade-binaries"></a>

```
cd $HOME
wget -O 0gchaind https://github.com/0glabs/0g-chain/releases/download/v0.4.0/0gchaind-linux-v0.4.0
chmod +x 0gchaind
mv 0gchaind $(which 0gchaind)
```

**Check the node version**

```
0gchaind version --long | grep -e version -e commit

Result:
version: 0.4.0
commit: 840deea660500f3948300ea3e9a1cba878ed682b
```

Restart the node

```
sudo systemctl restart 0gchaind  && sudo journalctl -fu 0gchaind  -o cat
```
