Re: /usr/local/lib/compat/pkg/ cleanup ?

看板FB_questions作者時間11年前 (2014/06/29 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/10 (看更多)
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 That's exactly why I mistrust it. > 3. read > 4. ??? > 5. PROFIT! > > I usually do something following: > 1. portupgrade -acvR > 2. rm -rf /usr/local/lib/compat/pkg Unfortunately I don't use portupgrade, but I like your radicalism :) 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. > 3. libchk + pkg_libchk > 4. force portupgrade those packages which displayed on step 3 -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JhmBUYo (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1JhmBUYo (FB_questions)