1

I have a couple of personal-use servers on which I would like to prevent the unnecessary installation of X11, Wayland, or any other unnecessary GUI dependencies. Is there a way to configure my systems to reject changes to make config if they would bring in a GUI package as a dependency and say which option was the one that brought in the GUI package(s)?

This answer seems to give a good starting outline but doesn't have the "turning on option X in make config will bring in X11" specificity.


Somewhat related, is there an easy command to uninstall all X11/* ports?

cjm
  • 151
  • 5

1 Answers1

0

You can add to your /etc/make.conf

OPTIONS_UNSET+=X11 XPM

Most ports will build without X11 dependencies by default. With make config you can still override this.

Glorfindel
  • 1,213
  • 3
  • 15
  • 22
dinoex
  • 121
  • 5