portupgrade confusion

TIM KELLERS trkellers at gmail.com
Sun Feb 17 19:03:27 UTC 2019


On 2/17/19 4:42 AM, Odhiambo Washington wrote:
> Whenever I upgrade a port on my FreeBSD-11.2, I always end up with  the
> following:
>
> --->  Cleaning out obsolete shared libraries
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec -
> /usr/local/lib/compat/pkg/libQt5Network.so.5.12.0
>
> What's the cause of this?
>
> BTW, other than 'portupgrade -a' what can I do to deinstall all ports, wipe
> all libraries related to them and reinstall all the ports afresh??
> I am trying to see if there is a way to not have conflicting libraries.
>
>
I had that problem a few months ago and this little piece of code fixed 
it for me:


# change folder
cd /usr/local/lib/compat/pkg
# print dangling links
find . -type l -exec test ! -e {} \; -print
# delete dangling links
find . -type l -exec test ! -e {} \; -delete


Tim Kellers



More information about the freebsd-questions mailing list