Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2016 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d84f82f7397fa60b4b81fcaa9f0eb5e3 to your computer and use it in GitHub Desktop.
Save anonymous/d84f82f7397fa60b4b81fcaa9f0eb5e3 to your computer and use it in GitHub Desktop.
# as root
$ git clone https://github.com/ugexe/zef
$ cd zef
$ perl6 -Ilib bin/zef --install-to=site install .
# (--install-to=site shouldn't be needed, but is included for explicitness)
# as user
$ zef --install-to=home install HTTP::UserAgent
# (--install-to=home shouldn't be needed, but is included for explicitness)
# Want to set the default `install-to` target for all users? Edit:
# https://github.com/ugexe/zef/blob/master/resources/config.json#L6
# Want to set the default `install-to` target for a *specific* user? Copy the above
# file to $USER_HOME/.zef/config.json and change any values you want
# Re: `DefaultCUR` of config.json:
# `auth` tries `site` and falls back to `home` (which is why the --install-to
# commands above shouldn't be needed anymore). Or you can give it an actual
# path like `inst#/home/user/perl6/modules`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment