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 1O65s7-0001Jn-1M for garchives@archives.gentoo.org; Sun, 25 Apr 2010 17:43:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9E47E08E0; Sun, 25 Apr 2010 17:43:52 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by pigeon.gentoo.org (Postfix) with ESMTP id D7C97E08C8 for ; Sun, 25 Apr 2010 17:43:37 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so1777361fgg.10 for ; Sun, 25 Apr 2010 10:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=uS3xbm1q/ezjjBjIo1RVD9dgbJFu49NzmpvI6m1dUqc=; b=junJpw2T4wH7UO8VYFE1ho6CeVylqJiPJYqpVT+PtOLhBCWOeR/aThNyByZBN6nzTU pLhGvQWx/nw+I5Ya78uBewPeCBBT1g+taBJnrwsdomFmOsc3rSfOxPaxfGcugAjR9DXr x3xAWUcUwJXB8uBTbw85tyixTUFgVew7w8bkw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=AkEjIdbORtV0FK5IG22aUx+Q5KMvb3lW5OR7GP1/NPTzlYaYMWoSJfSz1GF+Pi+2oW X+lcNGmGxOh+YTtaRwHVgYx/v1oIFD7+gk3YnwAVZYhJN4gF8xFKKkttPE0X7wmiyemZ vYpUwJ5oIlsnS1MUXlHF1iyJOA3TN7PJB/298= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.87.49.36 with SMTP id b36mr5118283fgk.57.1272217416086; Sun, 25 Apr 2010 10:43:36 -0700 (PDT) Sender: unhollow@gmail.com Received: by 10.223.115.143 with HTTP; Sun, 25 Apr 2010 10:43:35 -0700 (PDT) In-Reply-To: <4BD42501.9070505@gentoo.org> References: <4BD42501.9070505@gentoo.org> Date: Sun, 25 Apr 2010 19:43:35 +0200 X-Google-Sender-Auth: dd687221feada0d8 Message-ID: Subject: Re: [gentoo-dev] [RFC][NEW] Utility to find orphaned files From: =?UTF-8?Q?Benedikt_B=C3=B6hm?= To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: d707d968-d85a-4f75-9e16-2c5165f6cf26 X-Archives-Hash: 4645c6c84e88ad2a3f9d120b69c49241 On Sun, Apr 25, 2010 at 1:18 PM, Angelo Arrifano wrote: > Hello developers developers and developers, > > Ever wondered how much crap is left in your X-years old Gentoo box? > > I just developed a python utility to efficiently find orphaned files in > the system. By orphaned files I mean the files that are present on > system directories and don't belong to any installed package. > > The package builds a virtual filesystem (cache) on the RAM using python > hash tables. Then it uses the cache to find the ownership of files > inside user-specified dirs. > > Building the cache takes less than 10 seconds here in a system with 1366 > installed packages. > > This is not intended to be a finished program yet, I'm looking forward > for your constructive commentaries. i have refactored findcruft (search the forums) two years ago (see http://git.xnull.de/cgit/findcruft2/), maybe you can take a look at it, especially the false-positives handling. HTH, Bene