From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 14:05:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38150D9E for ; Sun, 28 Oct 2012 14:05:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id ED9B08FC08 for ; Sun, 28 Oct 2012 14:05:46 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9SE5kgq083438 for ; Sun, 28 Oct 2012 14:05:46 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9SE5kdJ083437 for freebsd-questions@freebsd.org; Sun, 28 Oct 2012 14:05:46 GMT (envelope-from bdrewery) Received: (qmail 72273 invoked from network); 28 Oct 2012 09:05:44 -0500 Received: from unknown (HELO ?10.10.0.115?) (freebsd@shatow.net@10.10.0.115) by sweb.xzibition.com with ESMTPA; 28 Oct 2012 09:05:44 -0500 Message-ID: <508D3BB7.8030209@FreeBSD.org> Date: Sun, 28 Oct 2012 09:05:43 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Alexander Kapshuk Subject: Re: Portupgrade now supports pkgng [/usr/ports/UPDATING] References: <508C2668.4010006@gmail.com> <508C839C.5090209@FreeBSD.org> <508CDBB8.3010001@gmail.com> In-Reply-To: <508CDBB8.3010001@gmail.com> X-Enigmail-Version: 1.4.5 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 14:05:47 -0000 On 10/28/2012 2:16 AM, Alexander Kapshuk wrote: > On 10/28/2012 03:00 AM, Bryan Drewery wrote: >> PKGNG is a replacement for the pkg_* tools that record package data in >> /var/db/pkg. >> >> It also allows for binary package upgrades. >> >> If you are wanting to use pkgng for binary packages, there's no need to >> use portupgrade anymore. Just 'pkg install name', 'pkg upgrade', etc. >> > Understood. Thanks. > > For some reason I thought I could use the PKGNG tool set together with > portupgrade the same way the pkg_* tools are used. pkgng obsoletes portupgrade -P and pkg_add -r. Even if portupgrade -P did have pkg support, it would not work right because of different OPTIONS/dependencies, and the desync between your local ports tree and the remote package server's versions. You can use 'pkg install' to replace 'portupgrade -P' right now, and just not use -P if you want to use the port. But it will not go smoothly. Picking one of the other is best. (Ports or packages) If you're managing multiple servers with packages, I recommend checking out ports-mgmt/poudriere (http://fossil.etoilebsd.net/poudriere) as it will build the binary packages to create your own remote pkgng repository. poudriere+pkgng really do obsolete portupgrade all together. > > Is there a straightforward way to go back to using the pkg_* tools in 9.1? If you have not installed, upgraded, or deinstalled anything, yes. You can cp all of the package dirs from /var/db/pkg.bak into /var/db/pkg, and remove WITH_PKGNG from /etc/make.conf and then run pkgdb -fu again. > > Thanks. -- Regards, Bryan Drewery bdrewery@freenode/EFNet