Re: binaries and libries in /lib /bin depends on/usr

From: "Michael A. Peters" <mpeters mac com>

To: fedora-devel-list redhat com

Subject: Re: binaries and libries in /lib /bin depends on/usr

Date: Sat, 03 Jun 2006 08:28:17 -0700

On Sat, 2006-06-03 at 06:33 -0400, Rex Dieter wrote:
> Patrice Dumas wrote:
> > Hello,
> >
> > I was under the impression that the commands and libraries in /bin and
> > /lib were meant to be usable without /usr mounted. Is it right?
> > However rpm which is a rather important command requires libraries
> > in /usr/lib:
> >
> > [dumas patoune lib]$ ldd /bin/rpm | grep usr
>
> A related question is: why is rpm in /bin, and not /usr/bin/? (I'd
> venture to guess this may have something to do with
> anaconda/installer-stage stuff).
I'm pretty sure it use to be statically linked, and probably remains
in /bin for historic reasons.
I'm guessing those that there are few situations where rpm is useful
when /usr is not mounted.