From owner-freebsd-questions@FreeBSD.ORG Fri Dec 26 23:41:19 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 8026A57B for ; Fri, 26 Dec 2014 23:41:19 +0000 (UTC) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 4FF4B665D5 for ; Fri, 26 Dec 2014 23:41:19 +0000 (UTC) Received: from pd2mr1so-ssvc.prod.shaw.ca ([10.0.141.110]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 26 Dec 2014 16:40:11 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=s+0R4JzlRBUW8GXF//6L4/AwYJegyFoFyppZH3AfVto= c=1 sm=1 a=FKkrIqjQGGEA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=s1O25tkdAAAA:8 a=6I5d2MoRAAAA:8 a=W6byqvpjIGo2wQI4y_oA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO cds005.dcs.int.inet) ([10.0.141.22]) by pd2mr1so-svcs.prod.shaw.ca with ESMTP; 26 Dec 2014 16:40:11 -0700 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: Do I want to switch to the new pkg(8) format? References: <7813720d20f4ad81c083db7695df728b.squirrel@ma.sdf.org> From: Dale Scott MIME-Version: 1.0 In-Reply-To: Message-Id: Date: Fri, 26 Dec 2014 16:40:11 -0700 (MST) To: Chris Stankevitz X-Mailer: Zimbra 7.1.4_GA_2567 (MobileSync - Apple-iPad2C5/1202.440) 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:41:19 -0000 > On Dec 26, 2014, at 2:57 PM, Chris Stankevitz = wrote: >=20 >> On Fri, Dec 26, 2014 at 9:59 AM, Warren Block wrote= : >> No, both binary packages and ports require pkg now. It is the only >> supported package management tool, and installing ports *is* installing >> packages. >=20 > Warren, >=20 > Thank you for your replies. I appreciate how careful you are being > with your language. Keeping in mind that my FreeBSD vocabulary is not > up-to-snuff, can you explain how these two statements can both be > simultaneously true: >=20 > "pkg is the only supported package management tool (and installing > ports *is* installing packages)" -Warren Block >=20 > "portmaster is the recommended tool for upgrading installed ports" > -Handbook section 5.5.3.1 >=20 >=20 > If both statement are indeed true, then I must conclude: >=20 > 1. Upgrading ports is not a "package management" operation. My thinking is that a) the ports system is how software is adapted to FreeB= SD, b) applications can have build options (typically configured via "make = config" before "make install"), and c) if you can live with the "default" o= ptions, then installing pre-compiled packages ("pkg install foo") saves con= siderable time. If you are using pre-compiled packages, then "pkg upgrade" upgrades them. I= f you are compiling from ports, postmaster is my preferred tool to upgrade = ("portmaster foo") (but there are other tools also). If you are using some = packages and installing others by compiling from the ports tree, then you w= ill have to "pkg lock" the ones you are compiling yourself to prevent "pkg = upgrade" from upgrading them using pre-compiled packages (with the "default= " options, not the options which you need, which necessitated you to compil= e them yourself in the first place), upgrade the packages ("pkg upgrade"), = then unlock, upgrade them with portmaster (which will respect your selected= options), then "pkg lock" them again. As someone else noted, pkg is getting smarter every day and will soon be ab= le to sort out exactly how to upgrade (and may even be able to now). >=20 > 2. There are many different "operations" you can do with ports and packag= es. >=20 > 3. Each "operation" might use a different tool. Sometimes pkg, > portmaster, portsnap, make, cvs, pkg_, portsclean, portupgrade, etc. Portsnap is a tool to quickly way update your ports tree, but you still hav= e to compile a port yourself. The cvs management tool was used for the freebsd operating system itself, b= ut has now been replaced with Subversion (svn). Portupgrade is an alternative tool to portmaster. All the pkg_* tools have been replaced by pkg. > Thank you again, >=20 > Chris All the flexibility was confusing when I started with freebsd, but it was s= till less confusing than the differences between the Linux distro's. Google= showed me the popular strategies, and then I just stuck with one. Good luck! Dale > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg"