From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MDnnJ-0001Yr-1C for garchives@archives.gentoo.org; Mon, 08 Jun 2009 22:58:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B388E03C4; Mon, 8 Jun 2009 22:58:20 +0000 (UTC) Received: from mail-gx0-f207.google.com (mail-gx0-f207.google.com [209.85.217.207]) by pigeon.gentoo.org (Postfix) with ESMTP id 00144E03C4 for ; Mon, 8 Jun 2009 22:58:19 +0000 (UTC) Received: by gxk3 with SMTP id 3so499445gxk.10 for ; Mon, 08 Jun 2009 15:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=TWnx4efPtaxgooiWBCAk823IH/HNbBhonEw1smg9Sxc=; b=RO0tQHsK3Zv71OIIQ69S+9E4UwclpnXza8QrI6mnkLIj81r7yOVFp5gbOlc9P/AkpI qtPY4LKzAi3iQoOL/DYfUH/i7XqaEYxl5NJzP+ArdlBfwUNFN1WzZjsTh1AgRk71MlBd 6ekO7HUcKLmJNvMbruO+e5XYIAANMgFMOhcOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=SRM0i6bZ9UweTLak6Z1s1qd0cd9+enx9s9vTaxJXmMaBwWzKISLE9coG4h9O/Zg75q lwj+5ZWKK4uC+Lj7PE5pTRGCFXvany2fUd0s9LYSGIHmyHCmSz+94pJDKEapQyObaoPP 0WZImjlae/HbPeHfmdG3H64U+2QlUJB2brRYI= Received: by 10.90.115.17 with SMTP id n17mr6276135agc.36.1244501899480; Mon, 08 Jun 2009 15:58:19 -0700 (PDT) Received: from ?64.89.163.19? (r163h19.dixie-net.com [64.89.163.19]) by mx.google.com with ESMTPS id 8sm8391222agd.37.2009.06.08.15.58.00 (version=SSLv3 cipher=RC4-MD5); Mon, 08 Jun 2009 15:58:19 -0700 (PDT) Message-ID: <4A2D974A.3090207@gmail.com> Date: Mon, 08 Jun 2009 17:57:14 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090529 SeaMonkey/1.1.16 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Finding orphaned libs References: <200906082244.18324.alan.mckinnon@gmail.com> <20090608215408.3c4b4c91@krikkit.digimed.co.uk> <200906090010.22562.alan.mckinnon@gmail.com> In-Reply-To: <200906090010.22562.alan.mckinnon@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Archives-Salt: 3b444d8b-9518-4504-9231-a6a7da123375 X-Archives-Hash: 4dcff3dd2362ac42d62855d696241019 Alan McKinnon wrote: > On Monday 08 June 2009 22:54:08 Neil Bothwick wrote: > >> On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: >> >>> Is there an easy way to detect the orphaned libs on and old machine >>> who's install dates back to 2004? The only idea I can come up with is >>> >>> for I in /usr/lib/*.so.* ; do equery belongs $I ; done >>> >> qfile --orphans /usr/lib/*.so.* >> >> or, maybe cleaner >> >> qfile --orphans $(find -H /usr/lib /lib -type f) >> >> which avoids checking all the symlinks. >> >> Then run symlinks remove any dangling links left over. >> > > Thanks, that's just the biscuit :-) > > I really need to start using those q* commands. After 5 years on gentoo, I > reckon it's about time... > > Careful, it will end up like etcat and the rest. You learn them and start to use them, then they go away and you have to start over again. Dale :-) :-)