From owner-freebsd-ports@FreeBSD.ORG Sat Jun 9 18:32:02 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74E6C106566B for ; Sat, 9 Jun 2012 18:32:02 +0000 (UTC) (envelope-from jlaffaye.freebsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id EA3008FC0C for ; Sat, 9 Jun 2012 18:32:01 +0000 (UTC) Received: by eaac13 with SMTP id c13so1714846eaa.13 for ; Sat, 09 Jun 2012 11:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=xzY7onsbrCSz1DeBPE6EXXmsLjHXvx4KMPMatsrl/CA=; b=n2kdI9HpYbJzoTVDFJFGn8YF1bCC3fLnkxf5T0OgAZazQ1AmC7497bQcZJE8QqGMQw AWJMjJpLBpKgD2fBwM09w4pQiiOV5N6VC04KcsHV99z8zuf0YSuMgwAPiOZd03waPeuy oFXaKLmXaWUbzgCMDdYaDzmiUzif6urwwkTvFlQRQEcoPMqgZdB96GoMl8gm0v2UcCan NkgdDGN/JFNKJPqqJfK4X0rHvUu1JV4fv97GHCubmXoKHqA8MOFNQp2l8vI1mfRG0vSh 09+A/Vkgjf/pdEPkFy5ls/l/88tJv7kA1ArjKZ73TdWU2h9WRl3pQB21hCwMyY50x4iq ZyhQ== Received: by 10.14.98.204 with SMTP id v52mr4732610eef.199.1339266720678; Sat, 09 Jun 2012 11:32:00 -0700 (PDT) Received: from ?IPv6:2001:41d0:fc00:100:3008:4925:1af7:ff87? ([2001:41d0:fc00:100:3008:4925:1af7:ff87]) by mx.google.com with ESMTPS id f16sm34507904eec.2.2012.06.09.11.31.59 (version=SSLv3 cipher=OTHER); Sat, 09 Jun 2012 11:31:59 -0700 (PDT) Sender: Julien Laffaye Message-ID: <4FD396A3.3070404@freebsd.org> Date: Sat, 09 Jun 2012 20:32:03 +0200 From: Julien Laffaye User-Agent: Thunderbird/7.0.1 MIME-Version: 1.0 To: Jason Hellenthal References: <4FD38FEB.5000402@infracaninophile.co.uk> <20120609182343.GB50954@DataIX.net> In-Reply-To: <20120609182343.GB50954@DataIX.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcin Wisnicki , freebsd-ports@freebsd.org Subject: Re: How to uninstall pkgng X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2012 18:32:02 -0000 On 6/9/2012 8:23 PM, Jason Hellenthal wrote: > > On Sat, Jun 09, 2012 at 07:03:23PM +0100, Matthew Seaman wrote: >> On 09/06/2012 18:46, Marcin Wisnicki wrote: >>> I've made a mistake of installing pkgng on 9.0-amd64 but since there is no >>> up-to-date repository I want to remove it. >>> >>> What would be the correct procedure to achieve that ? >>> >>> Invoking `pkg delete -a` still leaves some files including /usr/sbin/pkg. >> Not easy. You'ld have to delete the pkg port, undo any additional >> configuration you may have added to eg. /etc/make.conf (ie. remove >> WITH_PKGNG settings), undo any patches to portmaster (if you're using >> that) and then reinstall all your ports using the original package tools >> to rebuild /var/db/pkg/ contents. >> >> /usr/sbin/pkg is part of base nowadays. You don't want to delete that. >> > When was pkgng made part of base ? The bootstrap binary is in base, not pkgng. > > /usr/sbin/pkg would be from pkgng if you are using it to delete itself > then the problem you are experiencing is the file is busy at the time of > deletion. Try pkg_delete instead ? > Wrong, this is the bootstrap binary. The pkg binary is in LOCALBASE.