From 9045f244541c8e0cdd37247c8ab1fb9aafb1472f Mon Sep 17 00:00:00 2001 From: Jiho Lee Date: Wed, 26 Jun 2024 20:32:44 +0900 Subject: [PATCH] docs: Add sudo on commands, chmod before mv on install docs (#7009) --- docs/getting-started/installation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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