是否有包含非pipe理员的Linux发行版,可通过软件包pipe理器进行本地安装?

我正在寻找一个发行版,允许没有pipe理员权限的用户(sudo或其他)在本地目录下安装软件包。 基本上Linux的家酿 。 或者,想象一下,无论pipe理权限如何, apt-get install <foo>工作。

有没有理由不实施这样的系统,但我有兴趣,如果有人发布了这样一个function的分配。

澄清 :我正在具体询问分发提供的软件包pipe理器 。 这在我的问题的原始措辞中并不清楚。 我也没有想办法做到这一点(如chroot),也没有手动的方式(自动工具),但提供这个作为一个内置的用例的分布。

我认为几乎任何分配都可以让你做到这一点,给予足够的努力。 比如创build一个chroot环境并安装你喜欢的包pipe理器的实例。 或者只是给包pipe理器提供正确的选项。

尽pipe为了使事情变得更简单,您至less应该能够像普通用户一样使用常用的开发工具,比如C编译器,(自动)make,autotools等等。

事实上,通过使用“./configure –prefix = / home / example”,大多数可用软件包的源代码版本可以独立于系统的其他部分安装在主目录中。

例如Debian的dpkg工具有如下选项:

  --admindir=dir Change default administrative directory, which contains many files that give information about status of installed or uninstalled packages, etc. (Defaults to /var/lib/dpkg) --instdir=dir Change default installation directory which refers to the directory where packages are to be installed. instdir is also the directory passed to chroot(2) before running package's installation scripts, which means that the scripts see instdir as a root directory. (Defaults to /) --root=dir Changing root changes instdir to dir and admindir to dir/var/lib/dpkg. 

而Debian的安装过程实际上使用了这样的机制,简而言之,它从一个RAM磁盘启动,然后创build一些chroot环境,在新环境中的软件包使用如下命令安装:

 in-target apt-get update in-target apt-get install example 

有什么具体的你需要完成?

那将是“所有这些”。 我不知道任何分发,如果他们select,不允许用户在他们的主目录中安装软件。