From owner-freebsd-questions@freebsd.org Tue Jun 30 12:27:36 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 E75E6990E54 for ; Tue, 30 Jun 2015 12:27:36 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id B53551CF1 for ; Tue, 30 Jun 2015 12:27:36 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [88.151.27.41] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1Z9udM-0005v6-Tr for freebsd-questions@freebsd.org; Tue, 30 Jun 2015 13:27:29 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.marelmo.com with smtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z9udK-000568-Nt for freebsd-questions@freebsd.org; Tue, 30 Jun 2015 12:27:26 +0000 Date: Tue, 30 Jun 2015 13:27:25 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Mix'n'match between packages an ports? Message-Id: <20150630132725.e3ab60f2ac8b1d3e4662a535@sohara.org> In-Reply-To: <20150630115303.GA1331@aurora.oekb.co.at> References: <20150630115303.GA1331@aurora.oekb.co.at> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.27; amd64-portbld-freebsd10.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 24227@permanet.ie (plain) 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: Tue, 30 Jun 2015 12:27:37 -0000 On Tue, 30 Jun 2015 13:53:03 +0200 Ewald Jenisch wrote: > Hi, > > Having run FreeBSD for some years historically I used the "build from > source"-method in order to install/upgrade ports - i.e. "make && make > install" and "portupgrade" respectively. > > Since the package system has gotten much better of the years, I > decided to go for the binary way of installing/upgrading on recent > installations, i.e. "pkg ...". Now on one of these recent machines > I've got to install a port that needs some configuration when > building, so installing that particular program from source would be > better. > > Here's my question: Is a "mix and match" between binary and > source-installation (pkg.. vs. "make / portupgrade") possible on the > same machine, or is it one or the other? No it is perfectly possible (I have a few ports where I need different options to the pre-built packagess). It is important to use pkg lock to prevent pkg upgrade from replacing your carefully built version (yes I found this out the hard way). It is also useful to run make missing in the port and pkg install as many of the dependencies as possible to avoid building them. One catch is that a pkg upgrade may require you to rebuild the port if a dependency has changed shared lib version on you - so it helps to test your ports after a pkg upgrade. An alternative is to set up poudriere and a local web server and roll your own packages, but that involves you in building everything which is a pain if you use things like LibreOffice or even Firefox. I did this for a while before realising that I was doing all this build work for the sake of a handful of customisations. -- Steve O'Hara-Smith