From owner-freebsd-questions@freebsd.org Sun Jun 28 14:39:44 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5816198F326 for ; Sun, 28 Jun 2015 14:39:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15ED21A88 for ; Sun, 28 Jun 2015 14:39:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-85-234.dynamic.qsc.de [92.195.85.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id EC2BA3CDDB; Sun, 28 Jun 2015 16:39:41 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t5SEdfZA002368; Sun, 28 Jun 2015 16:39:41 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 28 Jun 2015 16:39:41 +0200 From: Polytropon To: Lev Cc: freebsd-questions@freebsd.org Subject: Re: security patch vs. binary upgrade Message-Id: <20150628163941.dbd85ae4.freebsd@edvax.de> In-Reply-To: <20150628162347.354c348a@jive> References: <20150621124345.1a09b8f6@jive> <20150628162347.354c348a@jive> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 14:39:44 -0000 On Sun, 28 Jun 2015 16:23:47 +0200, Lev wrote: > Take the situation that I upgrade my base system for the next major release. > What is going to happen with all the other ports? Must I reinstall literally > everything? This means I must recompile all the source ports, and reinstall > all the binary packages? No. Basically you can install the backwards compatibility port(s), for example compat9x-amd64 or compat8x-i386), depending on what version you come from. In this case, installed ports can be kept using. But pay attention: Adding new software to this construct may cause major problems (library mismatches are the typical ones). It's recommended to reinstall your ports when you change the FreeBSD major version (8 -> 9, 9 -> 10, 10 -> 11). You can do this with pkg if you want to use the precompiled binary packages, or the classic ports collection (with tools like portmaster or simple "make install"). If you're going to combine both methods, have a look at Poudriere. https://www.freebsd.org/doc/handbook/ports-poudriere.html > Is there any tool for this? Yes, portmaster can do this. See "man portmaster" and find an example for exactly this case in the EXAMPLES section. Some admins suggest making a list of your "main ports" and then use that list for reinstallation, instead of taking the risk of installing something (as a dependency) which is no longer needed just because it's on that list. Your "main ports" list should contain the software you're actually intending to use ("top level"), as the system will find out any needed (!) dependency on its own and install it. If you want to perform this task cleanly, there's also the suggestion to remove /usr/local entirely (after having copied any needed configuration of course!) and re-instantiate it using mtree, and removing the package database, then finally perform the reinstallation. However I don't know if pkg (in comparison to old pkg_* tools) likes that approach. :-) > Btw... how can I update the source port tree? With freebsd-update (make sure "Component src" is listed in /etc/freebsd-updarte.conf) or via SVN. https://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html You can also use SVN for source checkout: https://www.freebsd.org/doc/handbook/svn.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...