[Ilugc] Yum without Root Permission

  • From: sivakumar@xxxxxxxxxx (sivakumar)
  • Date: Thu Jun 17 12:19:24 2010

On Thu, 2010-06-17 at 11:58 +0530, sivakumar wrote:

On Thu, 2010-06-17 at 02:09 -0400, Rajesh kumar wrote:
My problem is that i dont have root permission in my system in office. I
need to install some packages for my development, usually i used to download
the source, install using ./configure --perfix=path to my local directory,
and use make and make install, i have added my local bin directory to
bash.rc file so that i can use all the installed commands.

Similar way i need to use YUM to install in my local repos, because its very
difficult to install a source having toomuch of dependencies .

Probably chroot, yum --installroot and rpm --root --initidb are the
search keywords for you.

I think this is what you need to do. [1]

1. chroot <some local path>
2. install yum in the local path (using src installation)
3. build rpm db for the new chroot using rpm --root <some local path>
--initidb
4. install the base packages yum ?installroot=<some local path> -y
groupinstall base 
5. install any package using yum install --installroot=<some local path>
<package name>

you can try google about the above steps. Below are few links which came
quite close.
http://www.crc.id.au/xen-performance-guide/
http://serverfault.com/questions/146483/yum-install-in-chroot-directory
http://www.lucas-nussbaum.net/blog/?p=385

[1] Disclaimer: I have not tested the steps myself



Other related posts: