From owner-freebsd-questions@freebsd.org Fri Jul 3 13:07:18 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 63209993CBB for ; Fri, 3 Jul 2015 13:07:18 +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 196312F68 for ; Fri, 3 Jul 2015 13:07:17 +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 42AD83CF03; Fri, 3 Jul 2015 15:07:08 +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 t63D78B7002345; Fri, 3 Jul 2015 15:07:08 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 3 Jul 2015 15:07:08 +0200 From: Polytropon To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org Subject: Re: portmaster -af fails due to dead port - HELP Message-Id: <20150703150708.f99fdcb6.freebsd@edvax.de> In-Reply-To: <20150703130914.1608e67e890df138a4d1dd1b@sohara.org> References: <20150702195510.GA2863@oslo.ath.cx> <20150703023514.GA4554@neutralgood.org> <5595FC4A.6020402@gmail.com> <20150703130914.1608e67e890df138a4d1dd1b@sohara.org> 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 13:07:18 -0000 On Fri, 3 Jul 2015 13:09:14 +0100, Steve O'Hara-Smith wrote: > On Thu, 02 Jul 2015 23:06:50 -0400 > "William F. Dudley Jr." wrote: > > > Is there a *simple* way to just replace all the ports I've built with > > the packaged equivalents? > > I went through doing just that some months ago as part of > switching to pkg. The approach I used was to use pkg_cutleaves to get a list > of stuff that wasn't installed as a dependency. Then I looked through it and > removed some I didn't care about winding up with my wanted list. > > Then I used pkg_delete to remove everything, installed pkg and > used pkg install to install everything from my wanted list - which of > course picked up all the dependencies. > > Ever since then all I've needed to do to keep it all up to date is > an occasional pkg upgrade and build the couple of ports for which I have > non-standard options. In the current case (upgrade and packager change), I think starting from scratch is the easiest way. My suggestion would be to eliminate all installed ports, and make sure that required contents of /usr/local/etc is backed up, then install what's needed. A list may help, but the most important thing is concentrating on "top level" ports, which is the software you _really_ want to use. Let pkg care about the dependencies. If you find something missing, it's easy to add it with pkg. Especially if you don't have the requirement to use non-default options (for ports), the precompiled packages are fine to use. That "top level" ports list can be created from a listing of currently installed packages _or_ can also be created manually. You _know_ which software you want to use. Then the list can be fed to "pkg install", and the current (!) versions will be available. > I really don't miss portupgrade, it was a great tool but pkg is > much better. Now that binary updating is fully working, the need to build from source has moved to specific edge cases. The simple idea of "getting installed software updated" does not force you to go via source anymore - pkg can do it faster. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...