Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.