From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 16:34:46 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 3D11E72E for ; Fri, 27 Jun 2014 16:34:46 +0000 (UTC) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [IPv6:2607:f8b0:400c:c01::233]) (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 F2AFB225A for ; Fri, 27 Jun 2014 16:34:45 +0000 (UTC) Received: by mail-ve0-f179.google.com with SMTP id sa20so5476859veb.24 for ; Fri, 27 Jun 2014 09:34:45 -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=nSfN91JnL/D7AzlXyavGaedizypw/8o52SpXz3uYDYw=; b=Lx/J6SujtQMNQ0v+8zI6NQlL0YhR5EZS7FjE5gPpvVcrhy61LjaUNjI5QE6BnrTC3K dDrr1fXZsW84RvzZb+5MZw85aNit2rjfVT8SQ39w5N0w8GCZRRFTnBANA+X6GFoIeNwI fLjseM7esqBq/DHsdrGyahgSD/e2mPAZZChC2LlS85Ps6ULdMR279rKlgLz/wEYbmbbK j4llmkMegx3Ijy8Y8Qp6XDzViFCE/ol9fgSnVeIN3PLBdhOHW9NGmniGh/b66bVMIYyB 3gwoTPo+TBdtFuqjE99ydR1duLWRn3iYnz0zC9qAyKDp3JyYYdcg9nQBZN0y2MfiOyz0 AJaA== X-Received: by 10.58.160.10 with SMTP id xg10mr21341481veb.0.1403886884999; Fri, 27 Jun 2014 09:34:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.100.76 with HTTP; Fri, 27 Jun 2014 09:34:24 -0700 (PDT) In-Reply-To: <20140627161801.GA38362@admin.sibptus.tomsk.ru> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> From: Anton Sayetsky Date: Fri, 27 Jun 2014 19:34:24 +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 16:34:46 -0000 2014-06-27 19:18 GMT+03:00 Victor Sudakov : > Colleagues, > > 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