Automic VaultAutomic Vault

brew

Install swtpm with Homebrew, apk, apt, dnf, Nix, pacman, zypper

Software TPM Emulator based on libtpms. Version 0.10.1 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install swtpm

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add swtpm

Alpine Linux edge package indexes · swtpm · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install swtpm

Debian stable package indexes · swtpm · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install swtpm

Fedora Rawhide package metadata · swtpm · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#swtpm

nixpkgs package indexes · pkgs/by-name/sw/swtpm/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S swtpm

Arch Linux sync databases · swtpm · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install swtpm

openSUSE Tumbleweed package metadata · swtpm · source: download.opensuse.org

overview

Package summary

Software TPM Emulator based on libtpms

Commands and aliases

  • swtpm
  • swtpm_bios
  • swtpm_cert
  • swtpm_ioctl
  • swtpm_localca
  • swtpm_setup

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • v0.1.0 era: The upstream repository exposes early v0.1.x release tags.
  • 2025: GitHub lists v0.10.1 as the latest swtpm release on April 30, 2025.
  • Current packaging: The input package facts list swtpm in Homebrew and major Linux package ecosystems.

Related projects

  • Related projects and topics include libtpms, QEMU, libvirt, TPM 1.2/2.0 tooling, virtual TPM devices, and distro packaging for virtualization hosts.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 7 runtime dependencies.
  • Build metadata lists 6 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
${XDG_CONFIG_HOME}/swtpm_setup.conf${HOME}/.config/swtpm_setup.conf/etc/swtpm_setup.conf/etc/swtpm-localca.conf/etc/swtpm-localca.options

executables

Installed executables

CommandKindExposureNote
swtpmcliglobal executable
swtpm_bioscliglobal executable
swtpm_certcliglobal executable
swtpm_ioctlcliglobal executable
swtpm_localcacliglobal executable
swtpm_setupcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.10.1
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv0.10.1

https://github.com/stefanberger/swtpm

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:swtpm
Version0.10.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/swtpm
Homepagehttps://github.com/stefanberger/swtpm
Repositoryhttps://github.com/stefanberger/swtpm
Upstream docshttps://github.com/stefanberger/swtpm/blob/master/README
LicenseBSD-3-Clause
Source archivehttps://github.com/stefanberger/swtpm/archive/refs/tags/v0.10.1.tar.gz
Last updated2026-06-22T22:48:58-04:00
Pulseupdated
Dependenciesgettext, glib, gmp, json-glib, libtasn1, libtpms, openssl@3
Build dependenciesautoconf, automake, gawk, libtool, pkgconf, socat
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameswtpm
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

swtpm 0.7.1-1.5

Libtpms-based TPM emulator

https://github.com/stefanberger/swtpm

sudo apt install swtpm
  • Section: misc
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Swtpm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swtpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swtpm-dev 0.7.1-1.5

Include files for the TPM emulator's CUSE interface

https://github.com/stefanberger/swtpm

sudo apt install swtpm-dev
  • Section: misc
  • Architecture: amd64
  • Source Package: swtpm
  • 1 dependencies
  • normalized package name match
  • Matched by: Swtpm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swtpm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swtpm-libs 0.7.1-1.5

Common libraries for TPM emulators

https://github.com/stefanberger/swtpm

sudo apt install swtpm-libs
  • Section: misc
  • Architecture: amd64
  • Source Package: swtpm
  • 5 dependencies
  • normalized package name match
  • Matched by: Swtpm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swtpm-libs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swtpm-tools 0.7.1-1.5

Tools for the TPM emulator

https://github.com/stefanberger/swtpm

sudo apt install swtpm-tools
  • Section: misc
  • Architecture: amd64
  • Source Package: swtpm
  • 9 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Swtpm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swtpm-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

swtpm

nix profile install nixpkgs#swtpm
  • normalized package name match
  • Matched by: Swtpm
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sw/swtpm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

swtpm 0.7.3-0ubuntu5

Libtpms-based TPM emulator

sudo apt install swtpm
  • Section: misc
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Swtpm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: swtpm from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

swtpm-tools 0.7.3-0ubuntu5

Tools for the TPM emulator

sudo apt install swtpm-tools
  • Section: misc
  • Architecture: amd64
  • Source Package: swtpm
  • 9 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Swtpm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: swtpm-tools from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

swtpm 0.10.1-r2

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface

https://github.com/stefanberger/swtpm

sudo apk add swtpm
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: swtpm
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Swtpm
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: swtpm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

swtpm-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-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: swtpm
  • normalized package name match
  • Matched by: Swtpm
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: swtpm-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

swtpm-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-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: swtpm
  • normalized package name match
  • Matched by: Swtpm
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: swtpm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

swtpm 0.10.1-3.fc44

TPM Emulator

https://github.com/stefanberger/swtpm

sudo dnf install swtpm
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: swtpm
  • 8 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Swtpm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swtpm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

swtpm-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-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: swtpm
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Swtpm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swtpm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

swtpm-libs 0.10.1-3.fc44

Private libraries for swtpm TPM emulators

https://github.com/stefanberger/swtpm

sudo dnf install swtpm-libs
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: swtpm
  • 10 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Swtpm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swtpm-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

swtpm-selinux 0.10.1-3.fc44

SELinux security policy for swtpm

https://github.com/stefanberger/swtpm

sudo dnf install swtpm-selinux
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: swtpm
  • 7 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Swtpm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swtpm-selinux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

swtpm-tests 0.10.1-3.fc44

Installed swtpm tests

https://github.com/stefanberger/swtpm

sudo dnf install swtpm-tests
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: swtpm
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Swtpm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swtpm-tests from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

swtpm-tools 0.10.1-3.fc44

Tools for the TPM emulator

https://github.com/stefanberger/swtpm

sudo dnf install swtpm-tools
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: swtpm
  • 17 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Swtpm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swtpm-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment