From owner-freebsd-stable@FreeBSD.ORG Sat Feb 28 13:08:40 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6593F16A4CE for ; Sat, 28 Feb 2004 13:08:40 -0800 (PST) Received: from wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8651F43D1D for ; Sat, 28 Feb 2004 13:08:39 -0800 (PST) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.10/8.12.10) with ESMTP id i1SL8agT014933 for ; Sat, 28 Feb 2004 16:08:36 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.10/8.12.10/Submit) id i1SL8VWd014930 for freebsd-stable@freebsd.org; Sat, 28 Feb 2004 16:08:31 -0500 (EST) (envelope-from bv) Date: Sat, 28 Feb 2004 16:08:31 -0500 From: Bill Vermillion To: freebsd-stable@freebsd.org Message-ID: <20040228210831.GA14669@wjv.com> References: <20040228200303.35CD116A4CE@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040228200303.35CD116A4CE@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on bilver.wjv.com Subject: Re: makewhatis weirdness in 4.9-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 21:08:40 -0000 On Sat, Feb 28, 2004 at 12:03 , while denying his reply is spam, freebsd-stable-request@freebsd.org prattled on endlessly saying: > ------------------------------ > Message: 10 > Date: Sat, 28 Feb 2004 10:14:43 +0300 (MSK) > From: Dmitry Morozovsky > Subject: Re: makewhatis wierdness in 4.9-stable > To: Kenneth W Cochran > Cc: freebsd-stable@freebsd.org > Message-ID: <20040228100420.T70804@woozle.rinet.ru> > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Fri, 27 Feb 2004, Kenneth W Cochran wrote: > [snip] > KWC> >So just delete these stale links (actually, I just check my man page hierarchy > KWC> >and clean up several stale links ;-) > KWC> > KWC> Ok, done; guess we'll see what happens with the next periodic-weekly > KWC> run... > You may just run sh /etc/periodic/weekly/320.makewhatis as root to check. > KWC> On a related note, I have some *very* old files in system > KWC> directores (/bin, /usr/bin, /sbin, /usr/sbin, /usr/lib, > KWC> /usr/libexec ...) dating back as far as year 2000, > KWC> apparently from the original install of 4.0-release and > KWC> never updated from {build,install}world. Is there any > KWC> (safe) way to get rid of that cruft? > In general no. However, no utility in the base system should break if you > delete old files; the only victims would be ports or your own scripts/program. > In your state I would: > > 0. backup (always wise! ;-) > 1. mkdir /var/chroot && cd /usr/src && make installworld > DESTDIR=/var/chroot, then compare root hierarchy and /var/chroot > 2. use sysutils/portugrade to upgrade your ports (use with > caution, especially when upgrading large sets of ports) > 3. use sysutils/libchk to locate unused shared libraries (which > would be the trickest part) > Or, if you have spare hardware and/or time, just install new > system from scratch and transit local settings to the new > system, then shift new system in (I use this technique for major > hardware upgrades for our servers cluster) I think that is a case of overkill from my POV - admittedly sometimes warped. Since it is apparent the system is newere than the the 4.0 and the dates reflect that you could be really crued and perform la -lat in the directories, which will sort the oldest files to the bottom, and use that as a starting point. Find the date of the last new file - all the files below that will be stale and then just do this. cd to that directory find . ! -newer -exec rm {} \; To fe safe you could do this first: find . ! -newer -exec ls -la {} \; Then just use your command line editor to change the "ls -la" to "rm" if the file listsing appears to be the ones you wish to remove. Pretty painless if you are not upgrading hardware as suggested above, > End of freebsd-stable Digest, Vol 49, Issue 6 > ********************************************* Bill -- Bill Vermillion - bv @ wjv . com