Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a Linux system where I do not have root privileges. It lacks svn and some other packages, so I thought I would install them in my home directory. However, installing them from source (for those whose binaries are not readily available) is quite painful because of the dependencies.

Is there a way I can use the package manager (zypper in this case, since its a Suse system) to install packages in my home dir? Since they take care of dependency resolution, it would be a bliss. If not, then I shall contact the sysadmin, but am curious why you can't run package managers on your ${HOME}.

share|improve this question

migrated from Feb 2 '12 at 3:03

This question came from our site for professional and enthusiast programmers.

It's probably more trouble than it is worth to try to make it work, since packages depend upon the standard C library, and so on. What you're after is something very different from the normal use case. (You can try to hack something together with the fakeroot tool and zypper's chroot abilities, but .. it'd be a pretty big hack.) – sarnold Feb 2 '12 at 2:11
up vote 1 down vote accepted

The job of the package manager is to check for dependencies, extract files from packages to proper destinations & executing required scripts.

If you just want the files in your home directory, you can simply extract the packages in your home directory.

You can use command line rpm2cpio php-5.1.4-1.esp1.x86_64.rpm | cpio -idmv to extract the packages, (I am an Arch user, so I don't have experience with rpm packages so I am not sure about the command).

But, the task you are trying to do is a difficult one & will require more than just extracting the files to the home directory. Happy hacking.

share|improve this answer
well i think using an rpm is gonna be my best bet – KVM Feb 2 '12 at 15:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .