Yum install packages to an alternate directory, without chroot?

Posted by Stefan Lasiewski on Server Fault See other posts from Server Fault or by Stefan Lasiewski
Published on 2012-12-03T20:12:26Z Indexed on 2012/12/03 23:07 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I would like to use the Foswiki yum repository to install Foswiki (296 packages). The default installation path is /var/lib/, but I want to install it to an alternate location at /opt/www/. In the future, I still want to use yum to check for and apply updates to the packages.

Is it possible to use yum to install packages to an location which is different then the default location provided by RPMs? Does Yum provide anything similar to ./configure --prefix=/usr/local/ or rpm --install --prefix=/opt/local?

Yum provides the --installroot option, but that appears to primarily for chroot environments.

© Server Fault or respective owner

Related posts about redhat

Related posts about yum