From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 23:35:09 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3B4E415 for ; Fri, 26 Dec 2014 23:35:09 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 67F3966526 for ; Fri, 26 Dec 2014 23:35:09 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id sBQNZ7XE045262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 26 Dec 2014 16:35:07 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id sBQNZ7OW045259; Fri, 26 Dec 2014 16:35:07 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 26 Dec 2014 16:35:07 -0700 (MST) From: Warren Block To: Chris Stankevitz Subject: Re: Do I want to switch to the new pkg(8) format? In-Reply-To: Message-ID: References: <7813720d20f4ad81c083db7695df728b.squirrel@ma.sdf.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 26 Dec 2014 16:35:07 -0700 (MST) Cc: cpet@sdf.org, freebsd-questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2014 23:35:09 -0000 On Fri, 26 Dec 2014, Chris Stankevitz wrote: > On Fri, Dec 26, 2014 at 3:11 PM, Warren Block wrote: >>> 1. Upgrading ports is not a "package management" operation. >> >> >> It is. A port is compiled and a package created from it. The old package >> is deleted and the new package installed. > > How do I use pkg to upgrade all of my ports? I think you said "use > pkg for all package management operations" I'm fairly sure I did not say that. :) > but the handbook says use > "pkg upgrade" for binary packages and portmaster for ports. The difference is, essentially, where the packages are built. 'pkg upgrade' looks for newer binary packages in the repository, portmaster or portupgrade will build them locally. > Thank you -- perhaps I should just stop beating around the bush and > directly ask: can someone give me a list of all the "package related" > tools what what they do? Ideally the list will include the tools that > I should be using at the top and in a postscript the tools I should > not be using because they are too old or for whatever other reason. I > find the handbook confusing... for example section 5.4 is titled "Use > pkg for binary package management" but you seem to feel otherwise... No. In reality, even those of us who mostly use ports occasionally see 'pkg' commands. For example, 'pkg info' to list what has been installed. There is no ports make target that does that. The workflow really depends on whether you install from binary packages or ports. Once installed, they are the same thing.