DLL vs Shared Library

Sergio Duran sergioduran at gmail.com
Thu Mar 30 20:41:13 UTC 2006


Hello, everyone,

I'm new to this list and I just go to this e-mail, I'm really sorry if I
don't know exactly what you're talking about but I'll take a wild guess...

I've been wondering about a new installation scheme, in which there's a
central database (for example, a text file with:
lib.so.1:/usr/local/bin/myapp/lib.so.1) with a list of installed shared
libraries and/or files, when installing an app or library, it copies all the
files in the installation package, unless there is a match in the shared
file database, in which case, instead of copying the file, it creates a hard
link to the file/library.

This way the app directory contains all the files it needs, including hard
links to the libraries, when deleting apps, the libraries remain available
as long as there is one hard link to the file.

The text file was obviously an example, a better way to locate the file's
location array with a hash would be better.

I don't know if this would create problems when loading libraries causing
them to load once per file location.

I'm sorry if I drifted away from the subject.

On 3/30/06, Derek Broughton <news at pointerstop.ca> wrote:
>
> Phillip Susi wrote:
>
> > I think you misunderstood the argument.  It isn't that unused shared
> > libs waste disk space, it is that it is nice to be able to simply copy a
> > program from one machine to another and have it just work, as opposed to
> > failing to load because one or more dependent libraries are not also
> > installed, or because a bunch of registry entries are missing or
> > something.  It is ease of use vs efficiency.
>
> Right.  That was the argument - after all, all the _duplicated_ libraries
> make for a lot more wasted space than a few unused shared libs lying
> around.  Of course, it presupposes that you would actually need to copy
> the
> whole app tree.  For very many cases, simply installing a .deb - without
> any configuration - gives you everything you need.
>
> fwiw, some time after I started using aptitude I did something like:
>   aptitude markauto ~nlib*
> and now I'm pretty sure I don't have unused libraries hanging around.
> --
> derek
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060330/68ad1be3/attachment.html>


More information about the ubuntu-users mailing list