From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 23:24:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 98F801E4 for ; Fri, 26 Dec 2014 23:24:11 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 294D766353 for ; Fri, 26 Dec 2014 23:24:11 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id r20so17887018wiv.8 for ; Fri, 26 Dec 2014 15:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R1FEIDarwkCp7SfdXOwdv5YVGUOB3yU4rchNu6xOG1U=; b=kaSk4be3FZwZkdsU68ZVIG6huZdApa8u49o9JI7m+YJsx1ZDC0O/2N9Tc5Jf2h/fXY NKDxBfHjFjML7aUtHrXfL/TSFb4ukXBP37SnxYZGile9O6q2uopAlqUizLaOS/ppXgq/ u1yA1mm15Rh2YipODoyiuVqywn5XsUt4M2Gkl19pSlcD5i3+fOOvYogyPdUgYNVaVtBT yx/T23WNZCqi7kESPW4sEAkHyptFB1j/KrtWAuylwtbC5Y/7xGXKhrcU8XRLLpAAzlqD OtLMcB90OHEd6dUWy8nbnLzQ2SSCys9LdAXFAOz7LeNwexVqkpRTWzqn83Lpr9C0mOj9 RaXw== MIME-Version: 1.0 X-Received: by 10.194.84.179 with SMTP id a19mr51251658wjz.96.1419636249639; Fri, 26 Dec 2014 15:24:09 -0800 (PST) Received: by 10.217.157.195 with HTTP; Fri, 26 Dec 2014 15:24:09 -0800 (PST) In-Reply-To: References: <7813720d20f4ad81c083db7695df728b.squirrel@ma.sdf.org> Date: Fri, 26 Dec 2014 15:24:09 -0800 Message-ID: Subject: Re: Do I want to switch to the new pkg(8) format? From: Chris Stankevitz To: Warren Block Content-Type: text/plain; charset=UTF-8 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:24:11 -0000 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" but the handbook says use "pkg upgrade" for binary packages and portmaster for ports. > Well, cvs and pkg_* can be skipped, they are deprecated. > > portsnap update the ports tree (/usr/ports), not installed packages. > portsclean similarly works on the ports tree, not installed packages. > > portmaster and portupgrade are port upgrade tools. Both are functionally > similar, mostly concerned with upgrading multiple ports and getting the > dependencies in the right order. > > portmaster and portupgrade call 'make' to build and do other ports > operations. But the port Makefiles call the package management tools when > it is time to delete or install packages, like after a new version of a port > has been compiled and the make target was "install". 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... Thank you, Chris