From owner-freebsd-questions@freebsd.org Fri Jul 3 21:34:01 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 ED73B993E00 for ; Fri, 3 Jul 2015 21:34:00 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.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 8653E2773 for ; Fri, 3 Jul 2015 21:33:59 +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 mx02.qsc.de (Postfix) with ESMTPS id 64605276AF; Fri, 3 Jul 2015 23:33:50 +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 t63LXotv002076; Fri, 3 Jul 2015 23:33:50 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 3 Jul 2015 23:33:50 +0200 From: Polytropon To: "William F. Dudley Jr." Cc: freebsd-questions@freebsd.org Subject: Re: portmaster -af fails due to dead port - HELP Message-Id: <20150703233350.51b6ea5c.freebsd@edvax.de> In-Reply-To: <5596F645.6030101@gmail.com> References: <20150702195510.GA2863@oslo.ath.cx> <20150703023514.GA4554@neutralgood.org> <5595FC4A.6020402@gmail.com> <86bnft1e4h.fsf@WorkBox.Home> <20150703195828.GA6560@neutralgood.org> <5596F645.6030101@gmail.com> 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: Fri, 03 Jul 2015 21:34:01 -0000 On Fri, 03 Jul 2015 16:53:25 -0400, William F. Dudley Jr. wrote: > Thanks to everybody for their help. > > I am now much further along in my upgrade, which was complicated by the > fact that > this is a running server, and I didn't want to interrupt the users more > than a little > bit, so "delete all the ports, install all the packages" was less than > ideal for me. Couldn't you have a maintenance session in scheduled downtime when you know the load is low (over night or at the weekend)? Just a suggestion from my own experience: When I encounter the need for a _massive_ upgrade, I usually do a new installation on a separate system, disk, chroot environment or something like that and prepare and _check_ everything, then migrate the configuration. When "switch over" time has arrived, then I replace the "whole system". Of course I schedule a downtime for this (much fewer time than for the update work) and make sure no users are logged in. > (And this is just barely above "hobby level" stuff, so I don't have the > luxury of > building up a new machine and cutting over to it after it's ready. The > upgrade has > to be done in place.) A separate environment will do. If you don't use ZFS - no problem. Building and installing can go to a different path than /usr/local, so running software is not affected. With chroot or jails it can be done. > I have found that I can replace the old ports with packages a little bit > at a time, > thus minimizing the outages. This is also possible. Only when the build process has been successful, the installed package will be removed. Usually already _running_ programs aren't affected, but maybe you encounter problems when a dynamically loaded library (as a dependency) has been updated. > The various bits of help with commands has been invaluable to me, and > though I might > have eventually figured this all out on my own, your help has greatly > sped the process. I'd like to mention that reading the "pkg primer" as well as at least having a look at the available manpages is very helpful, too. You don't have to remember the content of all manpages, but know that they are there, and which pages contain what information (in case you need to look for something specific). EXAMPLES sections are also worth reading. > I may sound like I'm some kind of noob, but in reality I've been running > FreeBSD since very > early on (pre-2000), but always as a "hobby", since being sysadmin > wasn't my day job. No need for an excuse. Many things have been changed in FreeBSD recently. The ports tree is "all different", a new versioning tool has been introduced, the Makefiles changed, "staging" of ports is there, pkg, ... > So I've upgraded FreeBSD over many, many versions. And historically, > upgrading the ports > was always a giant pain in the neck. Now, it seems, the binary package > management is finally > working, and once I get all these legacy port builds out of the way, > upgrades should be > much simpler in the future. Definitely: with pkg this now works well for 99.9% of the cases. Both the system and the ports now support binary updating, and unless there is a good reason why you want to build from source, it's probably the way to go for most users. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...