From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1EnWTT-0004v9-7F
	for garchives@archives.gentoo.org; Sat, 17 Dec 2005 07:27:23 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBH7PSfG014871;
	Sat, 17 Dec 2005 07:25:28 GMT
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200])
	by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBH7NZWS032610
	for <gentoo-user@lists.gentoo.org>; Sat, 17 Dec 2005 07:23:36 GMT
Received: by wproxy.gmail.com with SMTP id 68so723384wri
        for <gentoo-user@lists.gentoo.org>; Fri, 16 Dec 2005 23:23:35 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=DB28MDkRIHBk93tbfDwCz2y9PtuzbjrJ3AGywRlWe8+gz5LVXaUQuwg0tCyzT/kJw7F4LQiE7M1iHqf0bsNwJeCXI43UmMeLDuARU5pbrt6X8s4HdK+IfkqVuKtPW/JYOb2TtoTjDYT6lyj8P3IfoTAuB5iwuCx63UZFyB/5Nl0=
Received: by 10.54.122.6 with SMTP id u6mr4776349wrc;
        Fri, 16 Dec 2005 23:23:35 -0800 (PST)
Received: by 10.54.69.9 with HTTP; Fri, 16 Dec 2005 23:23:35 -0800 (PST)
Message-ID: <7573e9640512162323q3341df39je1a2242aae203c35@mail.gmail.com>
Date: Sat, 17 Dec 2005 00:23:35 -0700
From: Richard Fish <bigfish@asmallpond.org>
Sender: richard.j.fish@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] A Gentoo Enema
In-Reply-To: <do07eo$gvo$1@sea.gmane.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <do07eo$gvo$1@sea.gmane.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id jBH7NZWS032610
X-Archives-Salt: 5d7dc615-591e-4c8b-9b80-4dd126969605
X-Archives-Hash: b95e82d4b1e9b43f3bd715c54125bb42

On 12/16/05, Tom Eastman <tom@cs.otago.ac.nz> wrote:
> Is there a tool that will allow me to find *all* files that aren't owned
> by any package, so that I can then decide what to do with them?

It should be fairly simple to generate such a list.  You can generate
a list of all regular files that are owned by an installed package
with something like:

cd /var/db/pkg; find . -name CONTENTS -exec cat {} \; | grep ^obj |
awk '{print $2}' | sort

And then a list of all regular files on your system with:

find / -type f | grep -v -e "^/home" -e "^/tmp" -e "^/var/db" -e
"^/var/tmp" | sort

Then you just have to diff the two lists to find things that are not
owned by a package...

-Richard

-- 
gentoo-user@gentoo.org mailing list