Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
2  
What on earth are you doing? –  Michael Hampton Dec 3 '12 at 22:03
    
Would you consider making /var/lib/... a symlink to /opt/www? –  Mark Wagner Dec 4 '12 at 1:07
    
@MarkWagner : Yes I would. In fact, I did something similar as a workaround. That might be the only solution. –  Stefan Lasiewski Dec 4 '12 at 1:29
    
@MichaelHampton : I want to use yum to install packages to an alternate location in the same way that rpm and ./configure provide the --prefix option to install to an alternate location. –  Stefan Lasiewski Dec 4 '12 at 1:32
    
That doesn't really answer the question, why do you want to relocate it? –  Michael Hampton Dec 4 '12 at 1:33

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.