diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index f92d23e43997..61f6e42871bb 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -61,7 +61,7 @@ brew install trivy Arch Linux Package Repository. ```bash -pacman -S trivy +sudo pacman -S trivy ``` References: @@ -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