This applies directly to arch linux, but is also relevant for some other linuxes/unices.
I want to install a package. Let's call this package
leviathan. My harddrive is not large enough to store all of
leviathans dependencies. I have an external hard drive that has enough space for
leviathan. How can I install
leviathan to that hard drive? Example of what I hope is possible:
sudo pacman -S leviathan -o /media/big/drive to install it there, but allow me to run it anywhere with
/media/big/drive/leviathan arg1 arg2 arg3. I don't need or want any of the usual bindings and linkings that a package install creates. I know that this particular package is also attainable as a self-installing bash script, but I tried
Is this possible? If so how so?
NOTE: I have tried to install it by cloning the appropriate URL and building, but it tries to put a bunch of things in weird places. In particular I am trying to install Unity3D on a laptop with <10GB memory available, but with a 2TB hard drive (ext4 formatted) that I use for all of my big things. So if there is no general solution, a unity specific solution would temporarily be acceptable.