Avoiding the config menu when installing a FreeBSD port

Note to self: if you want to install a port from the FreeBSD ports collection and you want to avoid the configuration menu that some ports use, then set the BATCH build variable.

For example, to install Apache 2.2 with the default configuration, use this:

cd /usr/ports/www/apache22 && make BATCH=1 install clean

Handy for scripting. More detail in the [FreeBSD porter’s handbook][1]

[1]: http://www.freebsd.org/doc/en/books/porters-handbook/book.html#SLOW-USER-INPUT

Leave a Reply

Your email address will not be published. Required fields are marked *