macOS
brew install swtpmlocal Homebrew formula metadata
安装
brew install swtpmlocal Homebrew formula metadata
sudo apk add swtpmAlpine Linux edge package indexes · swtpm · 来源: dl-cdn.alpinelinux.org
sudo dnf install swtpmFedora Rawhide package metadata · swtpm · 来源: dl.fedoraproject.org
nix profile install nixpkgs#swtpmnixpkgs package indexes · pkgs/by-name/sw/swtpm/package.nix · 来源: api.github.com
sudo pacman -S swtpmArch Linux sync databases · swtpm · 来源: geo.mirror.pkgbuild.com
sudo zypper install swtpmopenSUSE Tumbleweed package metadata · swtpm · 来源: download.opensuse.org
概览
Software TPM Emulator based on libtpms
历史
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.
安全态势
没有找到 swtpm 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.options可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
swtpm | cli | 全局可执行文件 | |
swtpm_bios | cli | 全局可执行文件 | |
swtpm_cert | cli | 全局可执行文件 | |
swtpm_ioctl | cli | 全局可执行文件 | |
swtpm_localca | cli | 全局可执行文件 | |
swtpm_setup | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/stefanberger/swtpm
安装元数据
| 软件包键 | brew:swtpm |
|---|---|
| 版本 | 0.10.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/swtpm |
| 主页 | https://github.com/stefanberger/swtpm |
| 仓库 | https://github.com/stefanberger/swtpm |
| 上游文档 | https://github.com/stefanberger/swtpm/blob/master/README |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/stefanberger/swtpm/archive/refs/tags/v0.10.1.tar.gz |
| 最后更新 | 2026-06-22T22:48:58-04:00 |
| Pulse | updated |
| 依赖 | gettext, glib, gmp, json-glib, libtasn1, libtpms, openssl@3 |
| 构建依赖 | autoconf, automake, gawk, libtool, pkgconf, socat |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-tools来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.