From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 17:28:12 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 798943A2 for ; Fri, 27 Jun 2014 17:28:12 +0000 (UTC) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [IPv6:2607:f8b0:400c:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 394ED279C for ; Fri, 27 Jun 2014 17:28:12 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id i13so5546946veh.22 for ; Fri, 27 Jun 2014 10:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=k39Sea/MMqKcC9RKY0PPAHdy88QHQY2DDeWa0LZ2nKo=; b=w1UqWtPDWA+zE8LbMhVM5xolCvir6AmHC5nKc99Tmwa+BYF15kGBbabM7p+7rGagwh fpShkVhRw84JtdFJ+hP/I0Nn9WLq+YV2mFp/g5SKOgdbDozYuGFWxNIwH1js+UzH0POK rn6xQl4WJg99rEyb5JJrzsQyPZpunLC3jYq1rG+O1OrWekOO9LrmBWuO+yBnoBW1iFMU wExyra+J9DT+BmS5xB0kv4zp+FdqsR01LrYQO6rjlCwzzU8c1hnkqQCDobuyU4uTXg1S BKgr/LvkbgqUqfek08kkQG+lThoS/XWAy8MdeKcjyQwnjBtSYEVis8xnjOVISa6kClrS c6LQ== X-Received: by 10.58.151.68 with SMTP id uo4mr20636445veb.11.1403890091222; Fri, 27 Jun 2014 10:28:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.100.76 with HTTP; Fri, 27 Jun 2014 10:27:51 -0700 (PDT) In-Reply-To: <20140627165322.GA40497@admin.sibptus.tomsk.ru> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> <20140627165322.GA40497@admin.sibptus.tomsk.ru> From: Anton Sayetsky Date: Fri, 27 Jun 2014 20:27:51 +0300 Message-ID: Subject: Re: /usr/local/lib/compat/pkg/ cleanup ? To: Victor Sudakov Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2014 17:28:12 -0000 2014-06-27 19:53 GMT+03:00 Victor Sudakov : > 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