/usr/local/lib/compat/pkg/ cleanup ?
vas at mpeks.tomsk.su
Wed Jul 2 13:01:25 UTC 2014
Maciej Suszko wrote:
> > With "rm -rf /usr/local/lib/compat/pkg" you don't need all those
> > sophisticated tools you mentioned above. A missing library will
> > quickly make itself known :) and then you can forcible reinstall the
> > affected packages.
> Unless you do it remotely, using openssh from ports which might be
> affected... then you have a problem :)
> I usually do it like that:
> 1) find /usr/local -type f -print0 | xargs -0 ldd > /tmp/ldds
> 2 ) search the ldds file for "not found" or "compat"
> 3) find what packages affected files belongs to
> 4) recompile affected packages
Thank you, Maciej. This method is kinda harsh, but at least it does
not require additional software written in ruby etc etc.
I just moved /usr/local/lib/compat/pkg/* away, did the ldd check,
found nothing suspicious or missing, and removed all those libraries
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru
More information about the freebsd-questions