Date: Tue, 30 Jun 2015 13:27:25 +0100 From: Steve O'Hara-Smith <steve@sohara.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Jun 2015 13:53:03 +0200 Ewald Jenisch <a@jenisch.at> 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 <steve@sohara.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150630132725.e3ab60f2ac8b1d3e4662a535>