@@ -85,31 +85,29 @@ References:
8585Nix package manager for Linux and MacOS.
8686
8787=== "Command line"
88-
89- ` nix-env --install -A nixpkgs.trivy `
88+ ` nix-env --install -A nixpkgs.trivy `
9089
9190=== "Configuration"
92-
93- ``` nix
94- # your other config ...
95- environment.systemPackages = with pkgs; [
96- # your other packages ...
97- trivy
98- ];
99- ```
91+ ```nix
92+ # your other config ...
93+ environment.systemPackages = with pkgs; [
94+ # your other packages ...
95+ trivy
96+ ] ;
97+ ```
10098
10199=== "Home Manager"
102-
103- ``` nix
104- # your other config ...
105- home.packages = with pkgs; [
106- # your other packages ...
107- trivy
108- ];
109- ```
100+ ```nix
101+ # your other config ...
102+ home.packages = with pkgs; [
103+ # your other packages ...
104+ trivy
105+ ] ;
106+ ```
110107
111108References:
112- - < https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/admin/trivy/default.nix >
109+
110+ - https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/admin/trivy/default.nix
113111
114112### FreeBSD (Official)
115113
@@ -119,6 +117,48 @@ References:
119117pkg install trivy
120118```
121119
120+ ### asdf/mise (Community)
121+
122+ [ asdf] ( https://github.com/asdf-vm/asdf ) and [ mise] ( https://github.com/jdx/mise ) are quite similar tools you can use to install trivy.
123+ See their respective documentation for more information of how to install them and use them:
124+
125+ - [ asdf] ( https://asdf-vm.com/guide/getting-started.html )
126+ - [ mise] ( https://mise.jdx.dev/getting-started.html )
127+
128+ The plugin used by both tools is developped [ here] ( https://github.com/zufardhiyaulhaq/asdf-trivy )
129+
130+
131+ === "asdf"
132+ A basic global installation is shown below, for specific version or/and local version to a directory see "asdf" documentation.
133+
134+ ```shell
135+ # Install plugin
136+ asdf plugin add trivy https://github.com/zufardhiyaulhaq/asdf-trivy.git
137+
138+ # Install latest version
139+ asdf install trivy latest
140+
141+ # Set a version globally (on your ~/.tool-versions file)
142+ asdf global trivy latest
143+
144+ # Now trivy commands are available
145+ trivy --version
146+ ```
147+
148+ === "mise"
149+ A basic global installation is shown below, for specific version or/and local version to a directory see "mise" documentation.
150+
151+ ``` shell
152+ # Install plugin and install latest version
153+ mise install trivy@latest
154+
155+ # Set a version globally (on your ~/.tool-versions file)
156+ mise use -g trivy@latest
157+
158+ # Now trivy commands are available
159+ trivy --version
160+ ```
161+
122162## Install from GitHub Release (Official)
123163
124164### Download Binary
0 commit comments