macOS
brew install swtpmlocal Homebrew formula metadata
brew
Software TPM Emulator based on libtpms. Version 0.10.1 via Homebrew; verified 2026-06-22.
install
brew install swtpmlocal Homebrew formula metadata
sudo apk add swtpmAlpine Linux edge package indexes · swtpm · source: dl-cdn.alpinelinux.org
sudo apt install swtpmDebian stable package indexes · swtpm · source: deb.debian.org
sudo dnf install swtpmFedora Rawhide package metadata · swtpm · source: dl.fedoraproject.org
nix profile install nixpkgs#swtpmnixpkgs package indexes · pkgs/by-name/sw/swtpm/package.nix · source: api.github.com
sudo pacman -S swtpmArch Linux sync databases · swtpm · source: geo.mirror.pkgbuild.com
sudo zypper install swtpmopenSUSE Tumbleweed package metadata · swtpm · source: download.opensuse.org
overview
Software TPM Emulator based on libtpms
history
swtpm is a libtpms-based software TPM emulator with socket, character-device, and Linux CUSE interfaces. It is a command-line and service-oriented building block for virtual TPM workflows in QEMU, libvirt, testing, and confidential-computing-adjacent development.
The upstream README credits David Safford and Stefan Berger and describes a package that provides TPM emulators with different front-end interfaces to libtpms. It also ships tools for using the emulator, creating TPM certificates, and simulating TPM manufacturing by creating endorsement-key and platform certificates.
The input package facts show swtpm packaged across Homebrew, Alpine, Debian, Fedora, Nix, Arch, Ubuntu, and openSUSE. The upstream wiki includes build instructions for Ubuntu/Debian, RHEL, openSUSE, Alpine, OpenBSD, Cygwin, and macOS, reflecting a project maintained for distribution packaging and virtualization integration rather than a single application bundle.
Common usage is to run the swtpm emulator as part of a virtual-machine stack, control it with swtpm_ioctl, prepare state with swtpm_setup, and use supporting tools such as swtpm_cert and swtpm_localca for certificate-related TPM setup. The README directs users to per-tool READMEs and the wiki for operational details.
Package nerds care because swtpm is infrastructure glue: a small C/Shell-heavy package that lets VM stacks expose TPM functionality reproducibly. Its packaging footprint matters because TPM emulation is only useful when libtpms, QEMU/libvirt integration, init scripts, config files, and distro build flags line up.
security posture
No matching local secret-handling manifest was found for swtpm. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
${XDG_CONFIG_HOME}/swtpm_setup.conf${HOME}/.config/swtpm_setup.conf/etc/swtpm_setup.conf/etc/swtpm-localca.conf/etc/swtpm-localca.optionsexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
swtpm | cli | global executable | |
swtpm_bios | cli | global executable | |
swtpm_cert | cli | global executable | |
swtpm_ioctl | cli | global executable | |
swtpm_localca | cli | global executable | |
swtpm_setup | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/stefanberger/swtpm
install metadata
| Package key | brew:swtpm |
|---|---|
| Version | 0.10.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/swtpm |
| Homepage | https://github.com/stefanberger/swtpm |
| Repository | https://github.com/stefanberger/swtpm |
| Upstream docs | https://github.com/stefanberger/swtpm/blob/master/README |
| License | BSD-3-Clause |
| Source archive | https://github.com/stefanberger/swtpm/archive/refs/tags/v0.10.1.tar.gz |
| Last updated | 2026-06-22T22:48:58-04:00 |
| Pulse | updated |
| Dependencies | gettext, glib, gmp, json-glib, libtasn1, libtpms, openssl@3 |
| Build dependencies | autoconf, automake, gawk, libtool, pkgconf, socat |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | swtpm |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
swtpm 0.7.1-1.5
Libtpms-based TPM emulator
https://github.com/stefanberger/swtpm
sudo apt install swtpmswtpm-dev 0.7.1-1.5
Include files for the TPM emulator's CUSE interface
https://github.com/stefanberger/swtpm
sudo apt install swtpm-devswtpm-libs 0.7.1-1.5
Common libraries for TPM emulators
https://github.com/stefanberger/swtpm
sudo apt install swtpm-libsswtpm-tools 0.7.1-1.5
Tools for the TPM emulator
https://github.com/stefanberger/swtpm
sudo apt install swtpm-toolsswtpm
nix profile install nixpkgs#swtpmswtpm 0.7.3-0ubuntu5
Libtpms-based TPM emulator
sudo apt install swtpmswtpm-tools 0.7.3-0ubuntu5
Tools for the TPM emulator
sudo apt install swtpm-toolsswtpm 0.10.1-r2
Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface
https://github.com/stefanberger/swtpm
sudo apk add swtpmswtpm-dev 0.10.1-r2
Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface (development files)
https://github.com/stefanberger/swtpm
sudo apk add swtpm-devswtpm-doc 0.10.1-r2
Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface (documentation)
https://github.com/stefanberger/swtpm
sudo apk add swtpm-docswtpm 0.10.1-3.fc44
TPM Emulator
https://github.com/stefanberger/swtpm
sudo dnf install swtpmswtpm-devel 0.10.1-3.fc44
Include files for the TPM emulator's CUSE interface for usage by clients
https://github.com/stefanberger/swtpm
sudo dnf install swtpm-develswtpm-libs 0.10.1-3.fc44
Private libraries for swtpm TPM emulators
https://github.com/stefanberger/swtpm
sudo dnf install swtpm-libsswtpm-selinux 0.10.1-3.fc44
SELinux security policy for swtpm
https://github.com/stefanberger/swtpm
sudo dnf install swtpm-selinuxswtpm-tests 0.10.1-3.fc44
Installed swtpm tests
https://github.com/stefanberger/swtpm
sudo dnf install swtpm-testsswtpm-tools 0.10.1-3.fc44
Tools for the TPM emulator
https://github.com/stefanberger/swtpm
sudo dnf install swtpm-toolssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.