Like virtualenv
in python, Is there a way to create a custom environment inside the home folder ( atleast for installing apt packages ), and without requiring sudo rights, and also without assuming that any packages be installed already by the root ?
I have explored docker and even docker-rootless, but even docker-rootless still needs newuidmap
and newgidmap
to be installed in the system. Even if that can be installed, the bottleneck can be from the fact that the user must have atleast 65536 UIDs/GIDs per user.
Somewhere chroot was recommended, but apparently that too requires administrative privileges to setup.
I noticed that Flatpak has some features like this, but there are 2 issues with that too.
- It requires flatpak to be installed by the root
- It doesn't have most apt packages.
I ask this for 2 main reasons.
- To install
apt
packages in my home directory instead of root in my own laptop ( with sudo rights ) - To install packages that doesnt necessarily do anything that requires sudo rights, but still needs
apt
to install.apt download
just doesn't cut it, as we have to manually deal with the dependencies and configuration etc.
Is there a reason why nothing like virtualenv
was attempted for apt
?