Re: installroot question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My ultimate goal would be to have the nfs mount self contained.  If all the libiries and dependencies need to be installed in /usr/local, then that is fine with me.  I'm not doing this for any reason other than to learn how to do it.  At some point I'd envision using this set up in an academic setting with many computers.

Would rpm source files be an option?  Can yum resolve the dependincies on rpm source files?  And, can you modify where the rpm scource files install to, and use yum to handle all the other stuff?  I was thinking of writing a wrapper script that I can use to get everything self contained on the nfs mount.

Also, what steps would I need to go through to either move, or copy a program from one location to another.  ie Copy the bin, then the libiries, then ???

Thanks


On Dec 17, 2007 12:27 PM, Garrick Staples < garrick@xxxxxxx> wrote:
On Sun, Dec 16, 2007 at 06:30:58PM -0700, Curtis Higgins alleged:
> Hi,
>
> I'd like to use yum to install some programs to /usr/local rather than
> /usr.  It seems to me that I would need to use the command:
>
> yum installroot=/usr/local install xmms
>
> When I run that command I get the error:
>
> Cannot open logfile /usr/local/var/log/yum.log
> Determining fastest mirrors
> removing mirrorlist with no valid mirrors:
> /usr/local/var/cache/yum/fedora/mirrorlist.txt
> Error: Cannot find a valid baseurl for repo: fedora
>
> If I run the same command without the installroot option, it works fine, am
> I not using the right command option to get the package installed into a
> different directory?  If I'm doing this wrong, what is the right way?
>
> My goal is to create an nfs export where some useful programs live, the all
> my computers have access to.
>
> Any help is appreciated.

For a variety of reasons, yum and rpm are not the tools you want for this task.
yum, for its part, simply doesn't do this.  Even if you did move the binaries
from /usr/bin to /usr/local/bin, they wouldn't find libraries in
/usr/local/lib.

You are talking about setting up a software collection that necessarily does
not get repo closure; meaning that it will not contain all of its own
dependencies.

Imagine that xmms has lots and lots of dependencies, from audio/video packages
down to glibc.  You have to draw a line between which deps are installed
locally on each machine, and which are in your NFS share.

After you decide which packages go into the NFS share, then you need to build
them from source.  This is necessary so that the correct file paths (things
like ld rpaths) are added to the binaries correctly.

This is not really a simple project and I don't recommend it.  Unless you are
able to detect a lot of time to getting all of the builds correct, just use the
provided rpms.


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux