Ask Different is a question and answer site for power users of Apple hardware and software. 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 have installed some packages from macports, and nearly all of them required to install Xorg. How can I remove the Xorg packages? Is there a way to reinstall all my Xorg dependant package without Xorg support?

share|improve this question
up vote 2 down vote accepted

Many ports have a +nox11 variant, which you can add as a default variant in the variants.conf file that's pointed to in your macports.conf file. However, in my experience, there are some X11-dependent ports that don't have the +nox11 variant. I believe I've also seen situations in which non-X11-dependet port A depends on port B, and port B is so deeply X11-dependent that it wouldn't even make sense for it to have a +nox11 variant. Overall, in my experience, it's practically impossible to keep Xorg from getting installed. :-(

share|improve this answer

There is no need to worry about xorg-* related ports. They provide the client libs for applications using X11 only. You can continue to use the X server shipped with OS X (or XQuartz).

See also the corresponding entry in the MacPorts FAQ.

share|improve this answer

To disable X11 variants by default, edit /opt/local/etc/macports/variants.conf and add this line: -x11 +no_x11 +quartz.

If you install a port that requires X11 and doesn't offer a variant without, you'll have to live with it. But this will at least make it harder to accidentally install the X11 libraries when you don't want to.

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.