Saturday, January 27, 2024

Re: cleaning up /usr/local/lib after (many) upgrades?

...on 2024-01-27 20:43:17, Jan Stary wrote:

> That's definitely weird. Which packages own these files?
> $ pkg_info -E /usr/local/lib/libvpx.so.8.0
> $ doas pkg_check -Fq

pkg_info -E returns no output for any version but the latest,
which is then (in this case - I just picked libvpx as an example
from a long list of libs):

> # pkg_info -E /usr/local/lib/libvpx.so.16.0
> /usr/local/lib/libvpx.so.16.0: libvpx-1.13.1v0
> libvpx-1.13.1v0 Google VP8/VP9 video codec

The only files mentioned by pkg_check -Fq in /usr/local
are from stuff I built myself, outside of packages.
None of the outdated shared libs turn up.

> > Usually I'm just running pkg_add -u to pull fresh versions of packages.
> > And is there some "standard" way to get rid of the old versions?
> pkg_add generally replaces the old version with the new versions.

Yes, at least that's true for the binaries and manpages and such...

Alex.

No comments:

Post a Comment