Repository navigation
bootstrap install to non-default location #307
Copy link
Copy link
Closed
Description
Activity
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 installMore information available in the pkgsrc guide.
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.Yeh that's not possible, the prefix will be hardcoded into a huge number of places and there's no way to change that.
- added a commit that references this issue
on Aug 31, 2021 - added 2 commits that reference this issue
on Dec 2, 2021 - added a commit that references this issue
on Jan 24, 2022 - added a commit that references this issue
on Sep 4, 2022 - added a commit that references this issue
on Jan 4, 2023 - added a commit that references this issue
on Feb 7, 2023 - added a commit that references this issue
on Mar 20, 2023 45 remaining items
- added 9 commits that reference this issue
on May 14, 2026 - added 3 commits that reference this issue
on May 22, 2026 - added 2 commits that reference this issue
on Jun 23, 2026 - added a commit that references this issue
on Aug 30, 2026
Metadata
Metadata
Assignees
Labels
No labels
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
If I change to
-c $HOME/pkg, then when I dopkgin list, it will complain "cannot find /usr/pkg/sbin/pkg_admin". So it apparently is "hard coded".