From owner-freebsd-questions@FreeBSD.ORG Wed Oct 21 20:31:04 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55932106568D for ; Wed, 21 Oct 2009 20:31:04 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout021.mac.com (asmtpout021.mac.com [17.148.16.96]) by mx1.freebsd.org (Postfix) with ESMTP id 42F148FC18 for ; Wed, 21 Oct 2009 20:31:04 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp021.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KRV00IJMSZRQ700@asmtp021.mac.com> for freebsd-questions@freebsd.org; Wed, 21 Oct 2009 13:31:03 -0700 (PDT) Message-id: <354BF5E4-50E9-4230-A221-E505CB55E873@mac.com> From: Chuck Swiger To: Chad Perrin In-reply-to: <20091021194038.GA46360@guilt.hydra> Date: Wed, 21 Oct 2009 13:31:03 -0700 References: <20091021192839.GA12166@guilt.hydra> <62A5FC38-BD7F-4941-B760-ABF2C1700E73@mac.com> <20091021194038.GA46360@guilt.hydra> X-Mailer: Apple Mail (2.936) Cc: FreeBSD Questions Subject: Re: undo make deinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 20:31:04 -0000 Hi-- On Oct 21, 2009, at 12:40 PM, Chad Perrin wrote: > On Wed, Oct 21, 2009 at 12:38:48PM -0700, Chuck Swiger wrote: >> On Oct 21, 2009, at 12:28 PM, Chad Perrin wrote: >>> How does one undo a `make deinstall` when `make reinstall` fails? >> >> Do you have a package of this port handy?-- try doing a pkg_add of >> that... > > It is, for the moment, a hypothetical question -- based on an > experience > a year or so ago. I'd like to avoid having the same problem again > (deinstalling and reinstalling something, then finding the reinstall > didn't work) without having an idea how to undo the damage of > deinstalling something that actually worked. So . . . assume for > argument's sake that I haven't gone out of my way to create a > package in > advance, for a sort of "worst case scenario". As Dan mentioned, portupgrade creates a package before deleting the installed files, so it can rollback to the older version if the install of the update fails. And, of course, if you care about a system, then you would already be taking backups that you could restore from if you needed to... Regards, -- -Chuck