Skip to content

Commit

Permalink
Update installation.md (#265)
Browse files Browse the repository at this point in the history
Most of these commands can be run as a normal user, but some of them (mv, chmod, dpkg) require sudo.  Add sudo and make this easier to copy and paste.

Signed-off-by: Dustin Kirkland <dustin.kirkland@gmail.com>
  • Loading branch information
dustinkirkland authored Nov 6, 2023
1 parent 501f84f commit f036345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/en/system_config/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ Download the binary for your platform from the [Cosign releases page](https://gi
```bash
# binary
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64"
mv cosign-linux-amd64 /usr/local/bin/cosign
chmod +x /usr/local/bin/cosign
sudo mv cosign-linux-amd64 /usr/local/bin/cosign
sudo chmod +x /usr/local/bin/cosign

# rpm
LATEST_VERSION=$(curl https://api.github.com/repos/sigstore/cosign/releases/latest | grep tag_name | cut -d : -f2 | tr -d "v\", ")
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign-${LATEST_VERSION}.x86_64.rpm"
rpm -ivh cosign-${LATEST_VERSION}.x86_64.rpm
sudo rpm -ivh cosign-${LATEST_VERSION}.x86_64.rpm

# dkpg
LATEST_VERSION=$(curl https://api.github.com/repos/sigstore/cosign/releases/latest | grep tag_name | cut -d : -f2 | tr -d "v\", ")
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign_${LATEST_VERSION}_amd64.deb"
dpkg -i cosign_${LATEST_VERSION}_amd64.deb
sudo dpkg -i cosign_${LATEST_VERSION}_amd64.deb
```

## Homebrew/Linuxbrew
Expand Down

0 comments on commit f036345

Please sign in to comment.