Moving libs to /lib

Matthew Burgess matthew at linuxfromscratch.org
Sun Jan 9 12:04:41 PST 2005


Tushar Teredesai wrote:
> Matthew Burgess wrote:
> 
>> OK, I'm working on zlib at the moment.  Why do we shift everything to 
>> /lib and then rm /lib/libz.so and relink it to /usr/lib?  Why not put 
>> all of zlib's dynamic libraries in /lib and be done with it?  Is there 
>> something that expects to find /usr/lib/libz.so?  If so why not just 
>> create a symlink?  It seems really backwards putting everything in 
>> /lib and then immediately deleting it!
>
> As per FHS, /lib only contains the essential libs (and kernel modules) 
> to boot up the system. During bootup libz.so is not needed, only 
> libz.so.x is needed. Hence libz.so.x*needs to be moved to /lib. libz.so 
> is only needed during compilation and hence not needed in /lib.

Many thanks for this explanation Tushar!  Much appreciated.

Regards,

Matt.



More information about the lfs-dev mailing list