From owner-freebsd-current Mon Oct 7 18:25:38 2002 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 8F4CB37B401 for ; Mon, 7 Oct 2002 18:25:36 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBF6343E65 for ; Mon, 7 Oct 2002 18:25:34 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 1E0D3812F5; Tue, 8 Oct 2002 10:55:32 +0930 (CST) Date: Tue, 8 Oct 2002 10:55:32 +0930 From: Greg 'groggy' Lehey To: Daniel Eischen Cc: "M. Warner Losh" , FreeBSD-current@FreeBSD.org Subject: Re: Removing old binaries (was: Do we still need portmap(8)?) Message-ID: <20021008012532.GF57557@wantadilla.lemis.com> References: <20021008010539.GE57557@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday, 7 October 2002 at 21:18:10 -0400, Daniel Eischen wrote: > On Tue, 8 Oct 2002, Greg 'groggy' Lehey wrote: >> On Monday, 7 October 2002 at 20:07:37 -0400, Daniel Eischen wrote: >>> On Tue, 8 Oct 2002, Greg 'groggy' Lehey wrote: >>> >>>> I think we can greatly simplify things with one firm but relatively >>>> bearable rule: >>>> >>>> The directories /bin, /usr/bin, /sbin, /usr/sbin, >>> here> are for the exclusive use of the system installer. Install >>>> other programs here at your peril: they will be overwritten on the >>>> next installation. >>>> >>>> There are then dozens of ways of finding the old files and removing >>>> them. I'd be inclined just to remove all files in those directories >>>> which are older than some file in the build tree--*after* a successful >>>> installation. >>>> >>>> Thoughts? >>> >>> I don't think doing this by default is a good idea. Sometimes I >>> like to preseve previous versions of things, knowing that they >>> work. >> >> Nothing's stopping you saving them first.. > > In the same directory. Nothing's stopping you doing whatever you want, ultimately. I'm looking for the solution to the 99% case. >>> I'd prefer this as a job for mergemaster, asking you confirmation >>> for each binary. >> >> I'd much rather not have to do *anything* manually. That includes >> updating /etc, but that's a much larger can of worms. > > Well, then try fixing the tool so it's not as manual. Well, we used to have a tool which is automatic. I'd like to get back there. > I'd rather be presented with a list of things that have changed, and > a way to select all or none, or enter a submenu for finer-grained > control of what gets removed/updated (generalizing). As I said, I'd rather not have to do *anything* manually. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message