6

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?

AdminBee
  • 22,803
Chenna V
  • 159
  • 2
    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 08 '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 08 '12 at 21:25

1 Answers1

0

I don't think that's possible. If you have sudo rights, you could run sudo yum <...>.

Edward
  • 2,509