Skip to main content
Knowledge Base

No Sudo switch for binary installs does not work

Answer

Hello I am working on a non admin mac device. IT Admins installed the gruntwork-installer for me via Admin account. However, I still cannot install binaries with no-sudo switch as mentioned in the official documentation for binary installation. For reference, I am trying to install this: gruntwork-install --binary-name "kubergrunt" --repo "https://github.com/gruntwork-io/kubergrunt" --tag "v0.11.3" --no-sudo The admins also tried to run this via admin account but the no-sudo switch does not give any output. --- <ins datetime="2023-06-29T12:06:03Z"> <p><a href="https://support.gruntwork.io/hc/requests/110309">Tracked in ticket #110309</a></p> </ins>

This runs a bit counter-intuitive to what I would expect (and I think you are expecting), but `--no-sudo` is not a binary flag, it is expecting a value. Try this: ``` gruntwork-install --binary-name "kubergrunt" --repo "https://github.com/gruntwork-io/kubergrunt" --tag "v0.11.3" --no-sudo true ``` Here's my run, first without specifying `true` and then with: ``` ~ $ gruntwork-install --binary-name "kubergrunt" --repo "https://github.com/gruntwork-io/kubergrunt" --tag "v0.11.3" --no-sudo ~ $ gruntwork-install --binary-name "kubergrunt" --repo "https://github.com/gruntwork-io/kubergrunt" --tag "v0.11.3" --no-sudo true 2023-06-29 09:38:25 [INFO] [gruntwork-install] Installing kubergrunt... [fetch] INFO[2023-06-29T09:38:26-04:00] Downloading release asset kubergrunt_darwin_amd64 to /tmp/gruntwork-script-modules/kubergrunt_darwin_amd64 [fetch] INFO[2023-06-29T09:38:29-04:00] Downloaded /tmp/gruntwork-script-modules/kubergrunt_darwin_amd64 [fetch] INFO[2023-06-29T09:38:29-04:00] Download of release assets complete 2023-06-29 09:38:29 [INFO] [gruntwork-install] Moving /tmp/gruntwork-script-modules/kubergrunt_darwin_amd64 to /usr/local/bin/kubergrunt and setting execute permissions 2023-06-29 09:38:29 [INFO] [gruntwork-install] Success! ```