Date: Fri, 27 Jun 2014 20:27:51 +0300 From: Anton Sayetsky <vsjcfm@gmail.com> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: /usr/local/lib/compat/pkg/ cleanup ? Message-ID: <CAFG2KCLBnhXEx3B6rP6ir2hRiVvhRLiA7Lx5e_YJV2E2E2%2B1wQ@mail.gmail.com> In-Reply-To: <20140627165322.GA40497@admin.sibptus.tomsk.ru> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> <CAFG2KC%2BgC7igexqnOqgGz0s=AzMacZg=3mobvGZv97KABKOong@mail.gmail.com> <20140627165322.GA40497@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
2014-06-27 19:53 GMT+03:00 Victor Sudakov <vas@mpeks.tomsk.su>: > Anton Sayetsky wrote: >> > >> > I ran 'portmaster -a' and still ended up with some legacy libraries in >> > /usr/local/lib/compat/pkg, like >> > >> > # ldconfig -r | grep clamunrar_ >> > 115:-lclamunrar_iface.6 => /usr/local/lib/libclamunrar_iface.so.6 >> > 181:-lclamunrar_iface.7 => /usr/local/lib/compat/pkg/libclamunrar_iface.so.7 >> > # >> > >> > or >> > >> > # ldconfig -r | grep aprutil >> > 164:-laprutil-1.0 => /usr/local/lib/libaprutil-1.so.0 >> > 174:-laprutil-1.4 => >> > /usr/local/lib/compat/pkg/libaprutil-1.so.4 >> > # >> > >> > I don't know why it is so after a 'portmaster -a' run, but what is >> > more important, which is the best way to safely cleanup the >> > /usr/local/lib/compat/pkg of unused libraries without the risk of >> > rendering some software unusable? >> > >> > Is there software that would analyse the libraries for me and delete >> > the unused ones? >> ports-mgmt/portupgrade (portsclean) >> sysutils/bsdadminscripts (pkg_libchk) >> sysutills/libchk > > I know about the last one but I don't trust it. It shows some system > libraries (from the base system) as unreferenced libraries, this looks > highly suspicious to me. 1. man libchk 2. /WARNING 3. read 4. ??? 5. PROFIT! I usually do something following: 1. portupgrade -acvR 2. rm -rf /usr/local/lib/compat/pkg 3. libchk + pkg_libchk 4. force portupgrade those packages which displayed on step 3
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFG2KCLBnhXEx3B6rP6ir2hRiVvhRLiA7Lx5e_YJV2E2E2%2B1wQ>