From owner-freebsd-questions@FreeBSD.ORG Wed Mar 19 15:19:22 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9EE6F346 for ; Wed, 19 Mar 2014 15:19:22 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 53A5C402 for ; Wed, 19 Mar 2014 15:19:22 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s2JFJ7Sp050259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 19 Mar 2014 09:19:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s2JFJ7A2050256; Wed, 19 Mar 2014 09:19:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 19 Mar 2014 09:19:07 -0600 (MDT) From: Warren Block To: Matthias Fechner Subject: Re: Howto install apache on FreeBSD10 In-Reply-To: <532955D2.7080101@fechner.net> Message-ID: References: <532955D2.7080101@fechner.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) 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]); Wed, 19 Mar 2014 09:19:07 -0600 (MDT) Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 15:19:22 -0000 On Wed, 19 Mar 2014, Matthias Fechner wrote: > Dear list, > > I did yesterday an upgrade from FreeBSD 9 to 10. > And now I'm in the process to rebuild all installed ports. > > I started with apache22, as it is the most important one. When you start to rebuild ports after a major version upgrade, they must all be rebuilt. Apache is a higher-level port, and depends on lower-level ports, which should be rebuilt first. There is a procedure at the end of the portmaster(8) man page for rebuilding all ports, but it's for the old package system. Here is an adjusted one for pkg. It has not been tested much yet, but is at least closer than the original: 1. portmaster --list-origins > ~/installed-port-list 2. Update the ports tree 3. portmaster -ty --clean-distfiles 4. portmaster -Faf 5. pkg delete -afy 6. rm -rf /usr/local/lib/compat/pkg 7. Back up any files in /usr/local you wish to save, such as configuration files in /usr/local/etc 8. Manually check /usr/local and /var/db/pkg to make sure that they are really empty 9. Install ports-mgmt/pkg and then ports-mgmt/portmaster Remove both ~/installed-port-list 10. portmaster `cat ~/installed-port-list`