---
title: Install TPM 2.0 Reference Simulator on Linux | Snap Store
description: Get the latest version of TPM 2.0 Reference Simulator for Linux - TPM
  2.0 Reference Simulator
url: https://snapcraft.io/tpm2-simulator
---

# TPM 2.0 Reference Simulator (tpm2-simulator)

[Dmitrii Kuvaiskii (dimakuv)](https://snapcraft.io/publisher/dimakuv "View all snaps from Dmitrii Kuvaiskii (dimakuv)")

* [Dmitrii Kuvaiskii (dimakuv)](https://snapcraft.io/publisher/dimakuv "View all snaps from Dmitrii Kuvaiskii (dimakuv)")

latest/edge 1.83

Install latest/edge of TPM 2.0 Reference Simulator

---

**Install using the command line**

```
sudo snap install tpm2-simulator --edge
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

TPM 2.0 Reference Simulator is only available on the unstable edge channel. It could break and change often.

---

### Package name

* tpm2-simulator

---

### License

* BSD-2-Clause

---

### Last updated

* Today - latest/edge

---

### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/tpm2-simulator#report-snap-modal)

---

* [Description](https://snapcraft.io/tpm2-simulator#tab-description)
* [Security](https://snapcraft.io/tpm2-simulator#tab-security)

#### TPM 2.0 Reference Simulator

A TPM 2.0 simulator based on the official TCG reference implementation of
the TPM 2.0 specification (<https://github.com/microsoft/ms-tpm-20-ref>).

This snap is used for running the unit tests of go-tpm2
(<https://github.com/canonical/go-tpm2>) and its consumers. It is NOT a
secure TPM and must not be used to protect any real secret.

The simulator is built from an unmodified upstream release plus the patches
in the patches/ directory of this recipe:

* "-e/--ephemeral" keeps the simulator's NV state in memory only.
* the simulator waits for the client to close its end of the socket,
  so that the server end doesn't remain in TIME\_WAIT.
* the OpenSSL version check is relaxed to allow OpenSSL 3.5.

Run it with e.g. "tpm2-simulator -e 2321".

---

## Install TPM 2.0 Reference Simulator on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/tpm2-simulator/arch)

[### CentOS](https://snapcraft.io/install/tpm2-simulator/centos)

[### Debian](https://snapcraft.io/install/tpm2-simulator/debian)

[### elementary OS](https://snapcraft.io/install/tpm2-simulator/elementary)

[### Fedora](https://snapcraft.io/install/tpm2-simulator/fedora)

[### KDE Neon](https://snapcraft.io/install/tpm2-simulator/kde-neon)

[### Kubuntu](https://snapcraft.io/install/tpm2-simulator/kubuntu)

[### Manjaro](https://snapcraft.io/install/tpm2-simulator/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/tpm2-simulator/pop)

[### openSUSE](https://snapcraft.io/install/tpm2-simulator/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/tpm2-simulator/rhel)

[### Ubuntu](https://snapcraft.io/install/tpm2-simulator/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/tpm2-simulator/raspbian)
