Skip to content

bootstrap install to non-default location #307

Description

@kflu

Looks like joyent pkgsrc bootstrap installs to the default location /usr/pkg. Is there a way to customize the prefix, say, to non-previleged directory like $HOME/pkg?

This is what I was talking about - in e.g., https://pkgsrc.joyent.com/install-on-linux/, it says

# Install bootstrap kit to /usr/pkg
sudo tar -zxpf ${BOOTSTRAP_TAR} -C /

If I change to -c $HOME/pkg, then when I do pkgin list, it will complain "cannot find /usr/pkg/sbin/pkg_admin". So it apparently is "hard coded".

Activity

  1. self-assigned this
    on Jun 27, 2021
  2. jperkin commented on Jun 27, 2021

    @jperkin
    Collaborator

    Binary package sets are hardcoded to their chosen prefix, but you can build your own packages easily. Grab a copy of pkgsrc, then:

    cd pkgsrc/bootstrap
    ./bootstrap --unprivileged --prefix=$HOME/pkg

    Then build your chosen packages as normal, e.g.:

    cd pkgsrc/sysutils/coreutils
    bmake install

    More information available in the pkgsrc guide.

  3. kflu commented on Jun 27, 2021

    @kflu
    Author

    Thanks. But I want to use Joyent's pre-built packages via pkgin. I don't want to build from source myself, since that's very slow.

  4. jperkin commented on Jun 27, 2021

    @jperkin
    Collaborator

    Yeh that's not possible, the prefix will be hardcoded into a huge number of places and there's no way to change that.

  5. added a commit that references this issue on Jan 24, 2022
  6. added a commit that references this issue on Jun 2, 2022
  7. added a commit that references this issue on Sep 4, 2022
  8. added a commit that references this issue on Jan 4, 2023
  9. added a commit that references this issue on Mar 20, 2023
  10. added a commit that references this issue on May 5, 2023
  11. 45 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions