apt to install in home dir with non root user

tempora's picture


I want to use apt to build a package in user's home directory. The home directory has enough space to hold the package's source, its dependencies and binary output. But the apt documents say that you have to be a root user (sudo) to use it.

It's frustrating, as the only way now I have at my disposal is to build the package from source or use the dpkg and in both cases, figure out dependencies manually, create the dir layout manually and install the built things manually.

I wonder **if I can do all these things manually, why the tool writers (apt) think that doing so using their tool (apt) is somehow more special/dangerous?**
Please enlighten me on this topic.

Is there any tool like Gentoo Prefix[1] for Debian?

[1] http://www.gentoo.org/proj/en/gentoo-alt/prefix/