Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

So I don't have root permissions but I've been installing packages to a local directory on my(CentOS) system and it works fine.

But I was wondering if I can do the same using yum. The reason I want to use yum is because I don't want to worry about dependencies and want yum to take care of that for me. Is there a way to do this?


share|improve this question
Have a look here, here and specially here; while these questions might look pretty different, I think they are not (at least their answers are relevant here). Oh, and there is this, indicating that there might be a solution using yumdownloader and rpm --relocate. – sr_ Mar 8 '12 at 19:14
I am not sure if yum localinstall has a preview mode that can be used by non-privileged users as well. – Nils Mar 8 '12 at 21:25

I don't think that's possible. If you are a sudoer , you could run : sudo yum ......

share|improve this answer
This is true, but I'm pretty sure "I don't have root permissions" means he's not a sudoer – Michael Mrozek Mar 8 '12 at 19:43

Your Answer


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.