Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to build the newest port of Firefox (version 4.0.1,1). I currently have the package version installed (3.6.13). How well does the packages/port system handle mixing ports and packages? Will the dependencies be handled correctly?

For example: Firefox 4.0.1 requires nspr-4.8.7 whereas the packaged version is nspr-4.8.6. A whole slew of things (mostly from the gnome2-lite meta-package depend on nspr). If I install the newer version from ports will I completely wreck things?

I guess this begs a larger question: Can I mix packages and ports? Or do I have to pick one and stay with it? If I do decide to build a mixed system, will it be stable? Will there be appropriate dependency checking and resolution?

share|improve this question
I'll let a FreeBSD expert answer, but as far as I know, a package is just a port that someone's compiled for you, so yes, you can mix them freely. – Gilles May 2 '11 at 7:20
up vote 2 down vote accepted

You can use ports and packages simultaneously, both use same package database in /var/db/pkg.

Actually, packages are generated by ports system. For example, make package will install port and generate binary package for it. Also you can create package from currrently installed port with pkg_create -b command.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.