From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LRX55-000267-TG for garchives@archives.gentoo.org; Mon, 26 Jan 2009 19:25:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABC18E02A0; Mon, 26 Jan 2009 19:25:09 +0000 (UTC) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.243]) by pigeon.gentoo.org (Postfix) with ESMTP id 7F8C3E02A0 for ; Mon, 26 Jan 2009 19:25:09 +0000 (UTC) Received: by rv-out-0708.google.com with SMTP id b17so6513161rvf.46 for ; Mon, 26 Jan 2009 11:25:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=+sYf8KnxF9jleejVtORaETs9KToNcHgsEKqI/kGBat8=; b=r/HDpF4yQ7YufgD/nKVXzvx0g0XTIxD1usmtgYhZBXtNasShJ2o1T4JatBnjx2RVJz J/A4V/vSuEPnhU0s52Hbcp9pwK0Tp/8HP/q85rOqY8JW15x5ka4mcLEJMnA6ZMPG9fd1 jJgtK2HxjwrzKX5mMENXuz8tbms8lgiZkD0EU= 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 :content-transfer-encoding; b=Dq689q4mvA+vYvKCpHcDTSPTkUxkVk7I87Zqwg9miDB1TkcbIOE0DYCSBgP3Cyknz5 O3EeFS5oIRbmPM1KWl4Ombil8XekghIUijKgodxhkHZbZa8iDMwSnOOCERkbKcYpktxi 1Q3tTnJXZTgifPwInGsdvMaKIxkqpw/vCHaVg= 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 Sender: paul.hartman@gmail.com Received: by 10.140.140.3 with SMTP id n3mr2499833rvd.111.1232997908878; Mon, 26 Jan 2009 11:25:08 -0800 (PST) In-Reply-To: <49bf44f10901261017u5bec6a38yc9cbe9f2bf864421@mail.gmail.com> References: <49bf44f10901260841w61b08bb5q6d7519dee4cc758e@mail.gmail.com> <20090126214856.577a7fc6@coercion> <49bf44f10901260935y7e46b94te283d854a89269a5@mail.gmail.com> <497DF993.9090905@gmail.com> <49bf44f10901261017u5bec6a38yc9cbe9f2bf864421@mail.gmail.com> Date: Mon, 26 Jan 2009 13:25:08 -0600 X-Google-Sender-Auth: ae580b42ec008437 Message-ID: <58965d8a0901261125k3f2c445di2d1dcd6943ec7237@mail.gmail.com> Subject: Re: [gentoo-user] Installing outside of Portage & cruft removal From: Paul Hartman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 23419fa0-969c-4f27-a4d7-0ae0a39d0b84 X-Archives-Hash: 230f5965d5716d2ed7f4f98622c2221c On Mon, Jan 26, 2009 at 12:17 PM, Grant wrote: >>>>> What do you guys think of this? Do you know of a good cruft removal script? >>>>> >>>> Yep, there's quite good one in gentoo itself. >>>> >>>> Basically, you'll need to write a short config for it, consisting of >>>> lines like "cruft name", "cruft src uri" and a few more lines if you'll >>>> need to pass some extra parameters to configure/make/install. >>>> It'll build the package in a sandbox, then transfer it to destination, >>>> memorizing every change it did and preventing collisions and config >>>> overwrites. >>>> >>>> Just put that config script into an ebuild file and use portage to >>>> build it - as simple as it gets ;) >>>> >>> >>> I suppose you and Jesus are right, but what about cruft removal? Are >>> you saying Gentoo is 100% cruft-free? I've got a lot of junk in /etc >>> and especially ~/.* >>> >>> - Grant >>> >>> >>> >> > [snip] >> You have to clean out /etc and home directories yourself. > > Exactly. Nothing to help me along? I'll check out qfile, but I'm > surprised there isn't a good script for this. > > I'm the only one interested in a filesystem audit? > > - Grant > > >> Portage does do a good job of removing all the other files tho. If it >> puts it there, it will remove it if you unmerge a package. >> >> Dale I think if you enable auditing in the kernel and emerge sys-process/audit you can see the access history of any file on your system. (doesn't help after the fact, but going forward...) At least then you could see which user/program did things to which files. I think even if a file is missing that you think should have been there you can do an audit search and see who deleted it. I've never tried it myself but that's how I understand it. I could be wrong. And it's not what you asked for, but for cleaning cruft out of distfiles i use eclean from app-portage/gentoolkit... works great. Whenever I'm running low on space I run it and it zaps a few gigs of unneeded stuff without deleting the distfiles of active packages. Paul