Skip to content

Commit

Permalink
Merge pull request #424 from qinkunbao/doc
Browse files Browse the repository at this point in the history
Update readme to include the instruction to use the prebuilt gotpm tool.
  • Loading branch information
jkl73 authored Mar 29, 2024
2 parents a9c2ead + 480e490 commit 2739856
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ It contains the following public packages:
This repository also contains `gotpm`, a command line tool for using the TPM.
Run `gotpm --help` and `gotpm <command> --help` for more documentation.

### Use prebuilt `gotpm` binary

You can download the binary from a [release](https://github.com/google/go-tpm-tools/releases) directly.

```bash
# VERSION: 0.4.4 ARCH: Linux_x86_64
curl -L https://github.com/google/go-tpm-tools/releases/download/[VERSION]/go-tpm-tools_[ARCH].tar.gz -o go-tpm-tools.tar.gz
tar xvf go-tpm-tools.tar.gz
# You may need to copy the binary to a directory with executable permissions.
# NOTE: on Container-Optimized OS, /var/lib/google/ is executable
./gotpm --help
```

### Building and Installing `gotpm`

`gotpm` can be directly installed from this repo by running:
Expand Down

0 comments on commit 2739856

Please sign in to comment.