User: Password:
|
|
Subscribe / Log in / New account

Gentoo and the Linux Terminal Server Project

Gentoo and the Linux Terminal Server Project

Posted Jan 11, 2007 7:52 UTC (Thu) by ldo (guest, #40946)
Parent article: Gentoo and the Linux Terminal Server Project

>One feature that makes portage powerful for embedded setups and
>diskless clients is its ability to install packages into an arbitrary
>chroot without requiring that the package manager itself be installed
>there. A simple command such as `ROOT="/opt/ltsp" emerge packagename`
>will install that package, all of its run-time (not build-time)
>dependencies, and package metadata to /opt/ltsp.

How is this fundamentally different from

rpm --root /opt/ltsp ...

?


(Log in to post comments)

Gentoo and the Linux Terminal Server Project

Posted Jan 11, 2007 14:46 UTC (Thu) by tetromino (subscriber, #33846) [Link]

rpm is a low-level program for working with individual packages; the Gentoo equivalent of that is ebuild. By contrast, emerge is the high-level package manager which will install all your needed dependencies etc. In the RPM universe, that role is handled by yum and apt-rpm.

The question is, does yum allow you to install some packages into a different root? (I don't run Fedora, so I have no idea.)

using yum to build a chroot

Posted Jan 11, 2007 20:53 UTC (Thu) by scottt (subscriber, #5028) [Link]

Yum does support installing into a different root directory.

$ yum --help | grep root
--installroot=[path] set install root

There is another tool "mock" that builds rpms which uses yum to create a clean chroot with only the required build dependencies for each package build.

using urpmi to build a chroot

Posted Jan 14, 2007 19:24 UTC (Sun) by Zero_Dogg (subscriber, #31310) [Link]

urpmi too:

[root@wulfgar zerodogg]# LC_ALL=C urpmi --help |grep root
--root - use another root for rpm installation.

Gentoo and the Linux Terminal Server Project

Posted Jan 11, 2007 16:32 UTC (Thu) by dberkholz (guest, #23346) [Link]

An RPM needs to support this for it to work, and my understanding is that many of them don't. Gentoo's ROOT working is mandated by our policy.

Gentoo and the Linux Terminal Server Project

Posted Jan 11, 2007 21:48 UTC (Thu) by ldo (guest, #40946) [Link]

>An RPM needs to support this for it to work, and my understanding
>is that many of them don't.

What does an RPM file need to do to support an alternative installroot? Nothing. The RPM system itself does all the work.

Gentoo and the Linux Terminal Server Project

Posted Jan 12, 2007 1:03 UTC (Fri) by dberkholz (guest, #23346) [Link]

I spent a couple minutes doing research today, and I think I confused RPM's "root" support with its "relocatable" support. Easy enough to do, since I've never used either. =)

Gentoo and the Linux Terminal Server Project

Posted Jan 13, 2007 0:49 UTC (Sat) by emj (guest, #14307) [Link]

What you cant do with yum and apt is to add a --prefix=/opt/gaim/2.4.0 when installing an
application. That's the only good thing about Gentoo.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds