From owner-freebsd-current@FreeBSD.ORG Mon Oct 25 13:02:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D72DC16A4CE; Mon, 25 Oct 2004 13:02:38 +0000 (GMT) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4124343D58; Mon, 25 Oct 2004 13:02:38 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd07.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1CM4Ue-0000E5-04; Mon, 25 Oct 2004 15:02:36 +0200 Received: from Andro-Beta.Leidinger.net (GuJhseZ6QeWZlKqK4T-3rCgfMMkmf7xAWx+e1E5Qg-oy4r2eboAzrE@[217.229.218.178]) by fmrl07.sul.t-online.com with esmtp id 1CM4UO-0OsNJw0; Mon, 25 Oct 2004 15:02:20 +0200 Received: from Andro-Beta.Leidinger.net (localhost [127.0.0.1]) i9PD2Je5093452; Mon, 25 Oct 2004 15:02:19 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: (from www@localhost)i9PD2Ie8093451; Mon, 25 Oct 2004 15:02:18 +0200 (CEST) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: Andro-Beta.Leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from wwwproxy-2.sns-felb.debis.de (wwwproxy-2.sns-felb.debis.de [53.122.192.14]) by netchild.homeip.net (IMP) with HTTP for ; Mon, 25 Oct 2004 15:02:17 +0200 Message-ID: <1098709337.417cf95958202@netchild.homeip.net> Date: Mon, 25 Oct 2004 15:02:17 +0200 From: Alexander Leidinger To: Giorgos Keramidas References: <20041016142502.6362d396@Magellan.Leidinger.net> <20041023.194558.63828926.imp@bsdimp.com> <20041024124805.378e6bc3@Magellan.Leidinger.net> <20041024131927.GA60644@voi.aagh.net> <12D1A2B7719A7312364675CC@[192.168.1.16]> <20041024230428.GA1439@gothmog.gr> In-Reply-To: <20041024230428.GA1439@gothmog.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 / FreeBSD-4.10 X-Originating-IP: 53.122.192.14 X-ID: GuJhseZ6QeWZlKqK4T-3rCgfMMkmf7xAWx+e1E5Qg-oy4r2eboAzrE@t-dialin.net X-TOI-MSGID: 9c80ecd9-6194-4a10-a05e-fa120207dd06 cc: "Jason C. Wells" cc: current@freebsd.org Subject: Re: RFC: automated way of removing old base system files (only for a recent 6-current!) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 13:02:39 -0000 Zitat von Giorgos Keramidas : > On 2004-10-24 09:38, "Jason C. Wells" wrote: [list of commands to delete old files] > > My motivation was to delete items that I had NO_* (bind, sendmail) options > > for in make.conf. Handling of NO_* is on my TODO list. > I use something similar here. I run find on specific directories and > use the -x option though with -mtime: [...] > Then I manually skim through the lists and see if I want to keep > something listed in there. Eventually, I delete the obsolete files > with something like: I don't think we can do this in an automated fashion. We can't be sure there are no files from the user/admin in the base system directories. We also can't assume a specific partition layout. We also don't know about strange symlinks, so writting such an automation isn't straight forward. The approach I've choosen needs a little bit of initial amount of work to gather a list of files to remove, but IMO it's the safest way of removing files without the fear of causing strange sideeffects. Bye, Alexander. -- http://www.Leidinger.net/ Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org/ netchild @ FreeBSD.org : PGP ID = 72077137 Everybody is somebody else's weirdo. -- Dykstra