4

Is it possible to install a package for just the current user (placing files in locations that the user can write to, such as their home directory)?

Kat
  • 145

1 Answers1

2

It is not possible to install a package in a way that it would run correctly. The closest thing you could get to this is running apt-get inside a virtual machine or LXC container run by a normal unprivileged user. If you want to just unpack the .deb package, you can use dpkg -x archive.deb target_directory, but the installation scripts will not be run, and it will not be installed to the filesystem root.

bain
  • 11,260
  • As I thought. Compiling the sources directly will be necessary in any of these cases. – Kat Aug 06 '14 at 15:54
  • If you run Ubuntu in a VM or LXC container you can install binary packages to the root of the VM disk (which is either a file or directory in the host). – bain Aug 06 '14 at 16:15