[PLUG] Cleaning Up Multiple Copies of a Library

Larry Brigman larry.brigman at gmail.com
Tue Jan 20 20:22:32 UTC 2015


The first directory you reference saying you want to leave the 2014 files
and remove the 2013 files won't work as the 2014 files are just symlinks to
the 2013 libraries.

Similar in the /usr/lib.  Most of those that are listed (*.a) are
development libraries and not shared libraries.  All of these point back
through links back to /lib.

Also note that /usr/lib all reference /lib/libcurses so your ll listing on
/lib is missing some things there too.
Since the two locations point to different libraries it probably more of an
issue.


On Tue, Jan 20, 2015 at 11:08 AM, Rich Shepard <rshepard at appl-ecosys.com>
wrote:

>    Somehow, libncurses is present in two copies, with different dates and
> file sizes. This may be the reason I'm having problems using unixODBC so I
> want to clean this up. Did not find the file containing libncurses; it may
> well be in one of the base Slackware files, such as aaa_libs.
>
>    Here are the two directories' contents:
>
> ll /lib/libncurses*
> lrwxrwxrwx 1 root root     17 Mar  9  2014 /lib/libncurses.so.5 ->
> libncurses.so.5.9*
> -rwxr-xr-x 1 root root 313416 May  7  2013 /lib/libncurses.so.5.9*
> lrwxrwxrwx 1 root root     18 Mar  9  2014 /lib/libncursesw.so.5 ->
> - libncursesw.so.5.9*
> -rwxr-xr-x 1 root root 395048 May  7  2013 /lib/libncursesw.so.5.9*
>
>    Need to remove the 2013 files while leaving the 2014 files in place.
>
> and
>
> ll /usr/lib/libncurses*
> -rw-r--r-- 1 root root 414822 May  7  2013 libncurses++.a
> -rw-r--r-- 1 root root 416350 May  7  2013 libncurses++w.a
> -rw-r--r-- 1 root root 488966 May  7  2013 libncurses.a
> lrwxrwxrwx 1 root root     20 Mar  9  2014 libncurses.so ->
> - /lib/libncurses.so.5*
> lrwxrwxrwx 1 root root     12 Nov  7  2010 libncurses.so.5 -> libcurses.so*
> -rw-r--r-- 1 root root 592644 May  7  2013 libncursesw.a
> lrwxrwxrwx 1 root root     21 Mar  9  2014 libncursesw.so ->
> - /lib/libncursesw.so.5*
> lrwxrwxrwx 1 root root     13 Nov  7  2010 libncursesw.so.5 ->
> libcursesw.so*
>
>    Need to remove the 2010 and 2013 copies while leaving the 2014 copies in
> place.
>
>    Don't know if the solution is distribution-specific or -agnostic.
>
> TIA,
>
> Rich
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list