July 26, 2017

How to Reconfigure a FreeBSD Port

FreeBSD Logo

Usually, while building a port you can select certain build options. Somehow it happens that you want to reconfigure this port with other build options later. With this instruction you can clear out the port configuration option and start over again.

Root access is required to edit the following files and to execute commands. Log in as root (su) or simply prepend sudo to all commands that require root privileges.

Reconfigure the FreeBSD Port

Go into the directory containing the port and type the following command. This will clear out your previous build options.

make rmconfig

See the current build options

Use make showconfig to see the saved configuration.

make showconfig

Now you can start over again and install the port with your preferred build options.

Speak Your Mind