Skip to content

Commit

Permalink
docs: Add sudo on commands, chmod before mv on install docs (#7009)
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Jun 26, 2024
1 parent 3d02a31 commit 9045f24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ brew install trivy
Arch Linux Package Repository.

```bash
pacman -S trivy
sudo pacman -S trivy
```

References:
Expand Down Expand Up @@ -165,15 +165,15 @@ The plugin used by both tools is developped [here](https://github.com/zufardhiya

1. Download the file for your operating system/architecture from [GitHub Release assets](https://github.com/aquasecurity/trivy/releases/tag/{{ git.tag }}).
2. Unpack the downloaded archive (`tar -xzf ./trivy.tar.gz`).
3. Put the binary somewhere in your `$PATH` (e.g `mv ./trivy /usr/local/bin/`).
4. Make sure the binary has execution bit turned on (`chmod +x ./trivy`).
3. Make sure the binary has execution bit turned on (`chmod +x ./trivy`).
4. Put the binary somewhere in your `$PATH` (e.g `sudo mv ./trivy /usr/local/bin/`).

### Install Script

The process above can be automated by the following script:

```bash
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin {{ git.tag }}
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin {{ git.tag }}
```

### Install from source
Expand Down

0 comments on commit 9045f24

Please sign in to comment.