0

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.

  • Nope. Make some room on / See unix.stackexchange.com/questions/122672/… – jasonwryan Oct 27 '16 at 2:08
  • Actually, that link seems almost perfect, I just don't have a /var/lib/pacman/ on my external drive. What is the minimal setup I need there? I don't need a full arch install, but I am happy to have a lot (this external drive already has a number of non-dependent stand-alones on it) – LambdaBeta Oct 27 '16 at 2:14
  • You don't understand: this won't work... – jasonwryan Oct 27 '16 at 2:15
  • I do understand. I just got it working. I set up a LFS-style basic linux file system on my external, (enough that chroot /media/my/usb actually worked) then pacman -S -r /media/my/usb worked like a charm. As that link suggests, that is the whole point of the -r flag. – LambdaBeta Oct 27 '16 at 2:48
  • Re-read the man page: it explicitly warns against doing this. But, it is your system, do whatever you want. – jasonwryan Oct 27 '16 at 2:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.