Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Old versions of installed libraries

 
   Soft32 Home -> Linux -> General Discussions RSS
Next:  Starting a server through cron  
Author Message
clifto

External


Since: Aug 01, 2007
Posts: 10



(Msg. 1) Posted: Sun Nov 11, 2007 5:53 am
Post subject: Old versions of installed libraries
Archived from groups: alt>os>linux>gentoo (more info?)

For about the fiftieth time last night I got this:

* Old versions of installed libraries were detected on your system.
* In order to avoid breaking packages that depend on these old libs,
* the libraries are not being removed. You need to run revdep-rebuild
* in order to remove these old dependencies. If you do not have this
* helper program, simply emerge the 'gentoolkit' package.
*
* # revdep-rebuild --library libssl.so.0.9.7

Running the recommended command invariably gives:

There are no dynamic links to libssl.so.0.9.7... All done.

The only item listed as found:

Checking dynamic linking...
found /usr/local/lib/libgpac-0.4.2.so
done.

Re-emerging it doesn't help. Neither does a generic revdep-rebuild.

--
One meter, to within 0.0125% accuracy (off by just under .005 inches):
Three feet
Three inches
Three eights of an inch
Back to top
Login to vote
Arthur Hagen

External


Since: Oct 08, 2005
Posts: 23



(Msg. 2) Posted: Sun Nov 11, 2007 9:10 am
Post subject: Re: Old versions of installed libraries [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

clifto <clifto.DeleteThis@gmail.com> wrote:
> For about the fiftieth time last night I got this:
>
> * Old versions of installed libraries were detected on your system.
> * In order to avoid breaking packages that depend on these old libs,
> * the libraries are not being removed. You need to run revdep-rebuild
> * in order to remove these old dependencies. If you do not have this
> * helper program, simply emerge the 'gentoolkit' package.
> *
> * # revdep-rebuild --library libssl.so.0.9.7
>
> Running the recommended command invariably gives:
>
> There are no dynamic links to libssl.so.0.9.7... All done.

That means it's likely safe to delete /usr/lib/libssl.so.0.9.7*, unless you
have binaries you have compiled yourself (i.e. not through portage) that use
them.

> The only item listed as found:
>
> Checking dynamic linking...
> found /usr/local/lib/libgpac-0.4.2.so
> done.
>
> Re-emerging it doesn't help. Neither does a generic revdep-rebuild.

It's located under /usr/local, which means it's not part of standard gentoo,
but something you have installed yourself. Which also means you have to
keep it updated yourself.
If you already have a libgpac under /usr/lib, chances are that you may be
able to delete the one under /usr/local/lib, unless some binary you
installed manually (again, not through emerge) has an rpath pointing to it.

Finally to double back to what your post started with -- old libraries. I
use a small script to ensure I don't have old versions of a library hanging
around:

--- cut here --- save as "find-old-libs" --- cut here ---
#!/bin/sh

find /lib /usr/lib -type f -name '*.so*' \
| grep -v 'so$' \
| sed 's/\.so.*//' \
| sort >/tmp/duplib1.$$
sort -u </tmp/duplib1.$$ >/tmp/duplib2.$$
diff /tmp/duplib1.$$ /tmp/duplib2.$$ \
| grep '^<' \
| sed -e 's/^< /ls -1 /' -e 's/$/.so*/' \
| sh
rm -f /tmp/duplib1.$$ /tmp/duplib2.$$
--- cut here --- cut here --- cut here ---

The above script will find library versions you have multiple version of,
and if multiple ones are listed, you can usually remove the oldest (first
check with "qfile /path/to/somefilename.so.6.6.6" whether it belongs to a
package), followed by a revdep-rebuild after removal to ensure that packages
that used the old version are rebuilt to use the new.

Regards,
--
*Art
Back to top
Login to vote
clifto

External


Since: Aug 01, 2007
Posts: 10



(Msg. 3) Posted: Sun Nov 11, 2007 11:58 am
Post subject: Re: Old versions of installed libraries [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Arthur Hagen wrote:
> clifto <clifto RemoveThis @gmail.com> wrote:
>> found /usr/local/lib/libgpac-0.4.2.so
>
> It's located under /usr/local, which means it's not part of standard gentoo,
> but something you have installed yourself. Which also means you have to
> keep it updated yourself.

That's REALLY odd. The only thing I've installed by hand since this
formerly fresh Gentoo install was xmms, and that was done from the old
Gentoo distribution binaries. I didn't think gpac was used by xmms.

> Finally to double back to what your post started with -- old libraries. I
> use a small script to ensure I don't have old versions of a library hanging
> around:

Kewl, thanks!

--
One meter, to within 0.0125% accuracy (off by just under .005 inches):
Three feet
Three inches
Three eights of an inch
Back to top
Login to vote
Display posts from previous:   
Related Topics:
X Font nightmare - The other day I rebooted after eighteen days, and every X font on my system went nuts. Now it's an adventure to see wha...

autotools: so many versions installed - Hello, I am running Fedora Core 2 Linux. I am curious as to how come there would be so many versions of the autotools....

[gentoo-user] What is the preferred gentoo way to list all.. - Hi, I have an older gentoo systen which accumulated some cruft over the time - I have to clean it up :-) I want to list...

RPM installed / not installed? - Hi.... I am trying to get my softmodem to work with Fedora....I downloaded pre-compiled drivers, and now just have to....

X-free libraries - Is there any chance of the x-free libraries being sorted out sometime? Phil. -- Philip Charles; 39a Paterson Street...

io libraries - Long long time a go, there was this io library Cscape for MSDOS. It was a very neat lib of all kind of IO functions and...
       Soft32 Home -> Linux -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]