tpm_clear(8)
π tpm_clear β TPM Management π
okay bestie, buckle up, because tpm_clear is one of those commands that is literally the nuclear option and she does not play π
this page lives in section 8 of the System Manager's Manual, which is the big-girl section where all the privileged system management stuff hangs out. slay.
β¨ NAME β¨
tpm_clear β send your TPM back to its default state: unowned, disabled, inactive. it's giving factory reset but for your trusted platform module π
πΈ SYNOPSIS πΈ
tpm_clear [OPTION]
that's it. one command, one optional flag situation, infinite emotional damage (to your keys) π
π¦ DESCRIPTION π¦
so here's the tea β β tpm_clear asks your system's TPM to perform a clear through the TPM_OwnerClear API. and when we say clear, we mean it clears. it wipes out all ownership information, which effectively invalidates every single key and every bit of data tied to the TPM, and on top of that it disables and deactivates the TPM. all of it. gone. no cap π
this operation will prompt for the owner password. so know your password, bestie.
the --force option, though? she does it differently β she relies on Physical Presence to authorize the command via the TPM_ForceClear API, which means she skips the owner password prompt entirely. no password, just vibes (and physical presence, which is not vibes, it's a whole security thing, iykyk).
okay but here's where it gets spicy πΆοΈ β the TPM_OwnerClear API can be disabled until the current owner is cleared, and if that's the case you're gonna need to use --force together with the tpm_setclearable command. and separately, the TPM_ForceClear API can be disabled for the current boot cycle with the tpm_setclearable command too. so basically tpm_setclearable is the gatekeeper and you might need to have a chat with her first π
π¨ also super important: this command requires a reboot to complete the operation. so don't sit there refreshing and wondering why nothing happened. reboot. she said what she said. π₯
and now, the options, one bullet each because we are thorough in this house π
-h,--helpβ display command usage info. the classic "wait what does this do again" button π«Ά-v,--versionβ display command version info. for when you need to know exactly which flavor oftpm_clearyou're dealing with β-l,--log [none|error|info|debug]β set the logging level. pick your noise level:none,error,info, ordebug.debugis the "tell me everything, I want the whole group chat" setting π-u,--unicodeβ use TSS UNICODE encoding for passwords, so you play nice with applications that use TSS popup boxes π§-f,--forceβ rely on Physical Presence for authorization; therefore, do not prompt for owner password. skipping the password line, respectfully π-z,--well-knownβ authenticate using 20 bytes of zeros as the owner password (that's the default TSS Well Known Secret), instead of prompting for an owner password. yes, 20 zero bytes. she's well known for a reason β¨
π SEE ALSO π
go read these next, bestie, they're the whole friend group:
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people π«Ά report bugs to:
trousers-users@lists.sourceforge.net
and that's the whole page, babes π this was TPM Management, dated 2005-05-05 β iconic, timeless, still relevant, we love to see it. go clear that TPM (after you reboot, obviously). mwah πβ¨
π¦ where this page comes from
- debian bookworm: tpm-tools 1.3.9.2-0.1 Β· CPL
- debian trixie: tpm-tools 1.3.9.2-0.2 Β· CPL
- epel 10: tpm-tools 1.3.9-19.el10_0 Β· CPL-1.0
- epel 9: tpm-tools 1.3.9-13.el9 Β· CPL
- fedora 43: tpm-tools 1.3.9.2-5.fc43 Β· CPL-1.0
- fedora 43: tpm-tools 1.3.9.2-5.fc43 Β· CPL-1.0
- fedora 44: tpm-tools 1.3.9.2-6.fc44 Β· CPL-1.0
- fedora 44: tpm-tools 1.3.9.2-6.fc44 Β· CPL-1.0
- nixos 26.05: tpm-tools 1.3.9.2
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: tpm-tools 1.3.9.2
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- opensuse-leap 16.0: tpm-tools 1.3.9.2-160000.2.2 Β· IPL-1.0
- ubuntu jammy: tpm-tools 1.3.9.1-0.2ubuntu4
- ubuntu noble: tpm-tools 1.3.9.2-0.2build2 Β· CPL
- ubuntu questing: tpm-tools 1.3.9.2-0.2build2
- ubuntu resolute: tpm-tools 1.3.9.2-0.2build3 Β· CPL
- ubuntu stonking: tpm-tools 1.3.9.2-0.2build4 Β· CPL
- Copyright (C) 2005 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms