> ## 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.6 Upgrade Instructions

> [!WARNING]
>
> This version can be skipped. Upgrade to v0.16.7.

## Upgrade notes

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

> [!NOTE]
>
> The `monad` package is now built as a Debian package (PR #3277). Installation via `apt` is unchanged — no action is needed on a standard install. After upgrading, confirm the installed package version with:
>
> ```bash theme={null}
> dpkg-query --show monad
> ```
>
> The output should show version `0.16.6`.

> [!NOTE]
>
> Packages now stamp the submodule commit into the built binaries, and the triedb driver is resolved via `ldd` (PR #3277). On a standard install no action is needed. After the upgrade, `monad-rpc -V` reports the exact stamped submodule commit — use that value when verifying the running version in the final step below.

> [!NOTE]
>
> `monad-bft` now supports dual Prometheus/OTLP metrics export (PR #3275). The default Prometheus export is unchanged on a standard install, so no action is needed. If you run `monad-bft` from a custom unit, a systemd drop-in that overrides `ExecStart`, or a container, verify your metrics endpoint still works after the upgrade:
>
> ```bash theme={null}
> sudo systemctl status monad-bft --no-pager -l
> ```

> [!WARNING]
>
> `monad-mpt --upgrade` and the MONAD007 migration are removed in this release (PR #2709). If your runbook or tooling still invokes them, remove those steps — the flag is no longer accepted. After upgrading, the check below should return nothing:
>
> ```bash theme={null}
> monad-mpt --help | grep -- '--upgrade'
> ```

> [!WARNING]
>
> `monad-mpt --repair` is removed in this release (PR #2709). If your recovery runbook still invokes it, remove that step — the flag is no longer accepted. After upgrading, the check below should return nothing:
>
> ```bash theme={null}
> monad-mpt --help | grep -- '--repair'
> ```

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

## 2. Stop services

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

## 3. Re-import the APT repository signing key

> [!WARNING]
>
> The Category Labs APT repository signing key has been rotated. You **must** re-download the key before upgrading — with the old key, `apt update` fails signature verification and `monad=0.16.6` cannot be installed.

```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 new 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 --reinstall monad=0.16.6 -y --allow-downgrades --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.6"`. The `commit` field reports the stamped submodule commit (see the upgrade notes above).


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