# Installer swtpm avec Homebrew, apk, apt, dnf, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de swtpm pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install swtpm
```

  Preuve: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add swtpm
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:swtpm
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.10.1
- **Résumé source:** Software TPM Emulator based on libtpms
- **Page d'accueil:** <https://github.com/stefanberger/swtpm>
- **Dépôt:** <https://github.com/stefanberger/swtpm>
- **Dernière mise à jour:** 2026-07-13T17:31:48+09:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

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

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.10.1
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour swtpm. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.



## 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
## Autres enregistrements de gestionnaires de paquets

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


## Sources

- 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
