# swtpm mit Homebrew, apk, apt, dnf, Nix, pacman, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für swtpm in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:swtpm
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install swtpm
```

  Evidenz: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add swtpm
```

  Evidenz: Alpine Linux edge package indexes: swtpm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install swtpm
```

  Evidenz: Debian stable package indexes: swtpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install swtpm
```

  Evidenz: Fedora Rawhide package metadata: swtpm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#swtpm
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/sw/swtpm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S swtpm
```

  Evidenz: Arch Linux sync databases: swtpm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install swtpm
```

  Evidenz: openSUSE Tumbleweed package metadata: swtpm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:swtpm
- **Paketmanager:** Homebrew
- **Version:** 0.10.1
- **Quellzusammenfassung:** Software TPM Emulator based on libtpms
- **Homepage:** <https://github.com/stefanberger/swtpm>
- **Repository:** <https://github.com/stefanberger/swtpm>
- **Zuletzt aktualisiert:** 2026-07-13T17:31:48+09:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- swtpm (Alias)
- swtpm_bios (Alias)
- swtpm_cert (Alias)
- swtpm_ioctl (Alias)
- swtpm_localca (Alias)
- swtpm_setup (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 0.10.1
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

- <https://github.com/stefanberger/swtpm>
- <https://github.com/stefanberger/swtpm/blob/master/README>
- <https://github.com/stefanberger/swtpm/wiki>
- source_facts.executables
- source_facts.package-manager


## Sicherheitshinweise

Für swtpm wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.



## 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

- Unix: ${XDG_CONFIG_HOME}/swtpm_setup.conf, ${HOME}/.config/swtpm_setup.conf, /etc/swtpm_setup.conf, /etc/swtpm-localca.conf, /etc/swtpm-localca.options
## Andere Paketmanager-Einträge

- Debian apt - swtpm - 0.7.1-1.5: normalized package name match | Debian stable package indexes: swtpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Libtpms-based TPM emulator | https://github.com/stefanberger/swtpm
- Debian apt - swtpm-dev - 0.7.1-1.5: normalized package name match | Debian stable package indexes: swtpm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Include files for the TPM emulator's CUSE interface | https://github.com/stefanberger/swtpm
- Debian apt - swtpm-libs - 0.7.1-1.5: normalized package name match | Debian stable package indexes: swtpm-libs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Common libraries for TPM emulators | https://github.com/stefanberger/swtpm
- Debian apt - swtpm-tools - 0.7.1-1.5: normalized package name match | Debian stable package indexes: swtpm-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tools for the TPM emulator | https://github.com/stefanberger/swtpm
- Nix - swtpm: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swtpm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - swtpm - 0.7.3-0ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: swtpm from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Libtpms-based TPM emulator
- Ubuntu apt - swtpm-tools - 0.7.3-0ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: swtpm-tools from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Tools for the TPM emulator
- apk - swtpm - 0.10.1-r2: normalized package name match | Alpine Linux edge package indexes: swtpm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface | https://github.com/stefanberger/swtpm
- apk - swtpm-dev - 0.10.1-r2: normalized package name match | Alpine Linux edge package indexes: swtpm-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface (development files) | https://github.com/stefanberger/swtpm
- apk - swtpm-doc - 0.10.1-r2: normalized package name match | Alpine Linux edge package indexes: swtpm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface (documentation) | https://github.com/stefanberger/swtpm
- dnf - swtpm - 0.10.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: swtpm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | TPM Emulator | https://github.com/stefanberger/swtpm
- dnf - swtpm-devel - 0.10.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: swtpm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Include files for the TPM emulator's CUSE interface for usage by clients | https://github.com/stefanberger/swtpm
- dnf - swtpm-libs - 0.10.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: swtpm-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Private libraries for swtpm TPM emulators | https://github.com/stefanberger/swtpm
- dnf - swtpm-selinux - 0.10.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: swtpm-selinux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | SELinux security policy for swtpm | https://github.com/stefanberger/swtpm
- dnf - swtpm-tests - 0.10.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: swtpm-tests from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Installed swtpm tests | https://github.com/stefanberger/swtpm
- dnf - swtpm-tools - 0.10.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: swtpm-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tools for the TPM emulator | https://github.com/stefanberger/swtpm


## Combined YAML source

View the package source record on GitHub. [combined/swtpm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swtpm.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
