From owner-freebsd-questions@FreeBSD.ORG  Wed Oct 21 19:50:01 2009
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 B6783106566C
	for <freebsd-questions@freebsd.org>;
	Wed, 21 Oct 2009 19:50:01 +0000 (UTC)
	(envelope-from dan@dan.emsphone.com)
Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115])
	by mx1.freebsd.org (Postfix) with ESMTP id 7C03A8FC1D
	for <freebsd-questions@freebsd.org>;
	Wed, 21 Oct 2009 19:50:01 +0000 (UTC)
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n9LJo0IT038331
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <freebsd-questions@freebsd.org>;
	Wed, 21 Oct 2009 14:50:00 -0500 (CDT)
	(envelope-from dan@dan.emsphone.com)
Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1])
	by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n9LJo0Ee085649
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <freebsd-questions@freebsd.org>;
	Wed, 21 Oct 2009 14:50:00 -0500 (CDT)
	(envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
	by dan.emsphone.com (8.14.3/8.14.3/Submit) id n9LJo0gE085640
	for freebsd-questions@freebsd.org; Wed, 21 Oct 2009 14:50:00 -0500 (CDT)
	(envelope-from dan)
Date: Wed, 21 Oct 2009 14:50:00 -0500
From: Dan Nelson <dnelson@allantgroup.com>
To: FreeBSD Questions <freebsd-questions@freebsd.org>
Message-ID: <20091021194959.GN29215@dan.emsphone.com>
References: <20091021192839.GA12166@guilt.hydra>
	<62A5FC38-BD7F-4941-B760-ABF2C1700E73@mac.com>
	<20091021194038.GA46360@guilt.hydra>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20091021194038.GA46360@guilt.hydra>
X-OS: FreeBSD 7.2-STABLE
User-Agent: Mutt/1.5.20 (2009-06-14)
X-Virus-Scanned: ClamAV version 0.94.1,
	clamav-milter version 0.94.1 on email1.allantgroup.com
X-Virus-Status: Clean
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2
	(email1.allantgroup.com [199.67.51.78]);
	Wed, 21 Oct 2009 14:50:00 -0500 (CDT)
X-Scanned-By: MIMEDefang 2.45
Subject: Re: undo make deinstall
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Oct 2009 19:50:01 -0000

In the last episode (Oct 21), Chad Perrin said:
> 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".

 pkg_create -b

portupgrade uses this when upgrading, so it can roll back failed installs.

-- 
	Dan Nelson
	dnelson@allantgroup.com