From owner-freebsd-ports@FreeBSD.ORG Sat Jun 9 18:23:53 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 02E27106566B for ; Sat, 9 Jun 2012 18:23:53 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 638418FC0C for ; Sat, 9 Jun 2012 18:23:52 +0000 (UTC) Received: by ggnm2 with SMTP id m2so2150310ggn.13 for ; Sat, 09 Jun 2012 11:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=QCI8kBSNV5ouL9masChJCL1Y7YpR5rEKnmrwy1IX504=; b=NpHZnhmrku7AbK1/p/imLI7nayTjk8r8zOs08LEv9lIQxr0lAkMlpHNxM7wO3oTYmS po5/Io1ayN3eKKw4TAK5cGsg5/e00YFT3sc1nYfNzuvdnLsHIhDMHpMDJWMowrHH6a1t MrBAMvc22jMh2iX+Wfq6clUDMBeNHCPGS9g6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=QCI8kBSNV5ouL9masChJCL1Y7YpR5rEKnmrwy1IX504=; b=IZsgegt12p7dwE97P8lb9yRNWYUCtb+/TkM6cd+u47HLkQnaEp9wxD5BxTgkl+yL3j x8v9BoO7dbld6cosHTS/qWkoX32QPCBpgfMJmaFd7lCXSswHGj1gFjvRpAKz5RiviKSK JCLxfyHSS0U4f6HXszAWzZE3EUzfUZz2CnB1C7qRiDOMtKVXrpY97hJhBzW0qxEcBeTL Q1SGPxGSK/L+RvY2p4v+2+veeTh/hIR5Z75sVOrsReZcyXruzFE7pw6Rm1jB3SyBC7+J v166js+yLo+BUDPH6aOBiNJAmh6sKkXODjiadKZGLj0CbTvdnNuDHFM4e+BZW7OEMjFv PRNg== Received: by 10.236.46.74 with SMTP id q50mr13493712yhb.30.1339266226756; Sat, 09 Jun 2012 11:23:46 -0700 (PDT) Received: from DataIX.net (75-128-120-86.dhcp.aldl.mi.charter.com. [75.128.120.86]) by mx.google.com with ESMTPS id v61sm35339187yhi.17.2012.06.09.11.23.45 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jun 2012 11:23:46 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q59INhPb096922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jun 2012 14:23:43 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jh@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q59INhRO096921; Sat, 9 Jun 2012 14:23:43 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sat, 9 Jun 2012 14:23:43 -0400 From: Jason Hellenthal To: Matthew Seaman Message-ID: <20120609182343.GB50954@DataIX.net> References: <4FD38FEB.5000402@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FD38FEB.5000402@infracaninophile.co.uk> X-Gm-Message-State: ALoCoQm0zzCk4WX8YxaS1AVCIAsfWBVRyTqkMo7CtLHnwR1app4Yk65RjyzX6bzI0i3NSi8lNcku 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:23:53 -0000 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 ? /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 ? -- - (2^(N-1))