Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is there any way to remove build dependencies of the port after installing it?

Many ports use exotic tools for building and these tools are not used anymore when port is builded and installed.

share|improve this question
up vote 10 down vote accepted

My suggestion would be pkg_cutleaves (available in the ports collection), or pkg-orphan -- Both of these do the same basic thing (list packages that aren't referred to as a dependency by any other package, and ask you what to do).

I wouldn't bother though: The build dependencies will just have to be rebuilt and reinstalled when you upgrade the port, and they generally don't take up huge amounts of room. Leaving them won't hurt you unless your system is severely disk-space constrained.

share|improve this answer

Maybe you should use the packages?

share|improve this answer
Packages are often are a bit older and some ports need to be configured before build, so packages are not often and option for me. System binary updates are cool though. – artvolk Apr 15 '12 at 9:10

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.