Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 swtpm

查看 swtpm 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install swtpm

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add swtpm

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

Debian apt已验证 · 92%
sudo apt install swtpm

Debian stable package indexes · swtpm · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install swtpm

Fedora Rawhide package metadata · swtpm · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#swtpm

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

Arch Linux pacman已验证 · 92%
sudo pacman -S swtpm

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

openSUSE zypper已验证 · 92%
sudo zypper install swtpm

openSUSE Tumbleweed package metadata · swtpm · 来源: download.opensuse.org

概览

软件包摘要

Software TPM Emulator based on libtpms

命令和别名

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

历史

项目历史与用法

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.

时间线

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

安全态势

尚未找到受保护工具覆盖

没有找到 swtpm 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 7 个运行时依赖。
  • 构建元数据列出 6 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
swtpmcli全局可执行文件
swtpm_bioscli全局可执行文件
swtpm_certcli全局可执行文件
swtpm_ioctlcli全局可执行文件
swtpm_localcacli全局可执行文件
swtpm_setupcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本0.10.1
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v0.10.1

https://github.com/stefanberger/swtpm

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖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 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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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