-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install pup for all users (i.e. in /usr/local/bin/) on Linux #145
Comments
There's been a one-line PR to fix just that (#116), in limbo for over 18 months now, so I wouldn't hold my breath if I were you. |
@gromgit Thanks for the info.
|
Oh, sorry, I saw
For more information on the (long) list of Go environment variables: |
@gromgit Thanks a lot, just what I needed 👍
God bless you. |
It's not a good idea to run Instead, consider making $ sudo usermod -a -G adm my_username
$ sudo chgrp adm /usr/local/bin
$ sudo chmod g+w /usr/local/bin
# Logout and login again, then this should work without any permission issues...
$ GOBIN=/usr/local/bin go get github.com/ericchiang/pup |
@gromgit It's sad
However, I don't see want wrong downloading the package as root, doesn't |
Now, you could try to split the compile and install phases:
but that may cause some files in your Go cache to be created as root (during |
@gromgit You're absolutely right, I like your
|
Since you blew away the cached source, you'd need to That's why I recommended adjusting the writability of |
@gromgit OK, got it :) |
Hi Adrian, The Your solution works like a charm but I wonder how come ? BTW : Does |
The ownerships on a compiler binary (
The "secret sauce" involves:
In the commands I presented earlier, |
@gromgit Thanks man ! How come I had forgotten that it is the user's group membership that runs the command that matters, given that the file/directory already has write access rights for that group :) Cheers. |
Hi,
Can you please update your README.md to explain how to install pup for all users (i.e. in /usr/local/bin/) ?
The text was updated successfully, but these errors were encountered: