Mix'n'match between packages an ports?

Andrew Berg aberg010 at my.hennepintech.edu
Tue Jun 30 12:52:16 UTC 2015

On 2015.06.30 06:53, Ewald Jenisch wrote:
> 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?
There is no difference at all between the two, especially since staging in
ports became mandatory. Using ports directly builds a package and then installs
it. Problems occur when packages are built from different ports trees, however.
I highly recommend Poudriere (as others have mentioned) for creating your own
repo, since this will give you full control and stability, and will allow a
consistent, shareable set of packages for multiple machines that will all have
the options you want. Of course, this will require building all your own
packages, and Poudriere likes to be more conservative than the underlying ports
tools, and will rebuild packages even if they may not strictly need to be rebuilt.

If you feel that you must only build some packages yourself and use the
official FreeBSD repo (or any other repo that you do not control) for others,
you *must* keep your own tree in sync with it when upgrading. This is even more
complicated now that the official repo is not updated on a schedule, but rather
is updated as soon as the last build run is completed. This approach requires
more care and work in order to be stable, so I do not recommend it.

More information about the freebsd-questions mailing list