Is it possible to install Gentoo packages (ebuild-enabled programs, programs with support for portage) as an ordinary user (non-root) to one's own home directory (--prefix=$HOME or something like that)?

  • portage is very flexible, and I'd hazard a guess that with the right environment variable settings it could be done. But I'm not exactly sure what they would be right now.
    – Keith
    May 28, 2011 at 6:43

1 Answer 1


I'm pretty sure this should be doable using Gentoo Prefix.

Usually, Gentoo's Portage installs in the root of the filesystem hierarchy, '/'. On systems other than Gentoo Linux, this usually results in problems, due to conflicts of software packages, unless the OS is adapted like Gentoo/FreeBSD. Instead, Gentoo Prefix installs with an offset, allowing to install in another location in the filesystem hierarchy, hence avoiding conflicts. Next to this offset, Gentoo Prefix runs unprivileged, meaning no root user or rights are required to use it.

  • Could you give me step by step instruction how to install given package locally? May 28, 2011 at 15:18
  • I think you'll be better off reading the docs, they're more accurate than anything I could reproduce here.
    – Cedric
    May 29, 2011 at 12:07
  • Unfortunately from first browsing they do require good konwledge of Gentoo... and I am just beginning to use computer with Gentoo installed. As far as I have checked they lack step by step instruction. Still, I'll be trying. May 29, 2011 at 14:32
  • follow the solaris guide like they suggest: gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml
    – lkraav
    Jun 1, 2011 at 1:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .