> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monad.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# v0.16.7 Upgrade Instructions

> [!WARNING]
>
> These instructions are applicable to both **mainnet** and **testnet**. Deployment dates will be communicated via official channels.

## Upgrade notes

No breaking changes to `node.toml` config. This is a rolling upgrade on top of v0.16.6.

> [!NOTE]
>
> This release fixes out-of-memory kills when restoring a binary snapshot into a page-encoded database (post–MIP-8) on hosts with limited RAM. A new **v2** snapshot format groups storage by page so the loader can flush mid-shard and keep peak memory bounded.
>
> * To produce a memory-friendly snapshot, dump with `--snapshot-format v2`:
>
>   ```bash theme={null}
>   monad-cli --db /dev/triedb --version <block> --dump-binary-snapshot <dir> --snapshot-format v2
>   ```
>
> * To restore with a bounded loader buffer, pass `--load-buffer-size` (for example `2GiB`):
>
>   ```bash theme={null}
>   monad-cli --db /dev/triedb --load-binary-snapshot <file> --load-buffer-size 2GiB
>   ```
>
> Producing **and** restoring v2 snapshots both require v0.16.7 or newer. v0 and v1 snapshots still load, but their memory use is not bounded on a page-encoded database, so restoring a large one can still be OOM-killed on a low-RAM host.

> [!NOTE]
>
> `monad-cli --dump-binary-snapshot` now defaults to `--snapshot-format v1` (previously v0). Pass `--snapshot-format` explicitly if you depend on a specific format.

## 1. SSH into the node as `root` user

## 2. Stop services

```bash theme={null}
sudo systemctl stop monad-bft monad-execution monad-rpc
```

## 3. APT repository signing key

The Category Labs APT repository signing key was rotated in v0.16.6 and is **unchanged** in v0.16.7. If you already upgraded to v0.16.6, skip this step. If you are upgrading from v0.16.5 or earlier, re-import the key first:

```bash theme={null}
curl -fsSL https://pkg.category.xyz/keys/public-key.asc \
  | gpg --dearmor --yes -o /etc/apt/keyrings/category-labs.gpg
```

Verify the key is installed:

```bash theme={null}
gpg --show-keys --with-fingerprint /etc/apt/keyrings/category-labs.gpg
```

The output should show the `Category Labs APT Archive Signing Key (2026)` with fingerprint:

```
7C42 CFAB 84AB B23B 5040  082C DE2D ABCA 749E 2B10
```

## 4. Upgrade monad package

```bash theme={null}
sudo apt update && sudo apt install monad=0.16.7 -y --allow-change-held-packages
sudo apt-mark hold monad
```

The `apt-mark hold monad` command prevents the monad package from being upgraded automatically by `apt-get upgrade`. Without it, unattended system upgrades can install a newer version of monad that has not been approved for your network, causing version mismatch issues.

## 5. Start services and verify

```bash theme={null}
sudo systemctl daemon-reload
sudo systemctl start monad-bft monad-execution monad-rpc
sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l
```

All services should show `Active: active (running)`. Confirm the node rejoins and advances blocks.

Verify the correct version is running:

```bash theme={null}
monad-rpc -V
```

Confirm the output reports `"tag":"v0.16.7"`. The `commit` field reports the stamped submodule commit.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.