From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 14:29:34 2003 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 1A3DC16A4BF; Mon, 1 Sep 2003 14:29:34 -0700 (PDT) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DB6043FF3; Mon, 1 Sep 2003 14:29:32 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38ldup2.dialup.mindspring.com ([209.86.251.34] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19twEm-0000CU-00; Mon, 01 Sep 2003 14:29:25 -0700 Message-ID: <3F53BA01.5E8C3F03@mindspring.com> Date: Mon, 01 Sep 2003 14:28:33 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" References: <20030901072017.GH30277@sunbay.com> <20030901.012249.118997606.imp@bsdimp.com> <20030901.102216.108348004.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a46dffc8fe95218b123bfa378c8b1cdaca350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: DougB@freebsd.org cc: current@freebsd.org cc: kuku@physik.rwth-aachen.de Subject: Re: /lib symlinks problem? 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, 01 Sep 2003 21:29:34 -0000 "M. Warner Losh" wrote: > In message: <20030901015535.Y3776@znfgre.qbhto.arg> > Doug Barton writes: > : I posted one approach to this today... touch a file right before you > : start installworld, then consider anything not newer than that file a > : candidate for disposal. There is currently something weird going on in > : /usr/lib though... a lot of the files don't have newer dates, I haven't > : tracked down why yet. > > No. That's not what I'm talking about. That approach is crap, > because installworld doesn't touch all files. > > : Also, I highly recommend NOT deleting the files, but moving them > : somewhere. This makes it much easier to recover if you delete something > : you shouldn't have. > > I don't care the method of removal. I care more about the list. If > you want to mv them them instead of rm, it isn't a big deal to change > that detail. You are going to need to generate the list from a clean install. You will either need to register things into the package system (the cleanest approach) or generate an mtree with MD5's, and that a huge hit scanning the system for changes. It'd be fairly easy to compare deltas between such files, but it would be cleaner if all subsequent systems installed as packages, and the package version amangement could be used. For the first system that does this, all you'd need to do is dump the package packing list files into the place pkg_add would have dumped them, had you actually installed a package (it won't care that there's not a "real" package, when you go to upgrade). -- Terry