Home > FreeBSD > FreeBSD Ports Batch Install

FreeBSD Ports Batch Install

December 10, 2012 Leave a comment Go to comments

FreeBSD Ports Batch Install

Many ports interactively prompt for various configuration options when installing. This is both annoying and time consuming. Fortunately, it can also be avoided.

`make config-recursive` interactively prompts users for options prior to `make install` or `make package-recursive`. This, however, is still interactive. Alternatively, one could add ‘-DBATCH’ to the command and install or create packages accepting default configuration options.

The following examples install and create packages including dependencies, respectively. In the second example, packages will be written to /usr/ports/packages if it exists.

# cd /usr/ports/sysutils/puppet
# make -DBATCH install

or

# cd /usr/ports/sysutils/puppet
# make -DBATCH package-recursive

Disclaimer

This blog is posted for informational purposes only. Extensive testing is recommended prior to implementing changes discussed here.

Categories: FreeBSD
  1. Shane's avatar
    Shane
    December 10, 2012 at 8:56 PM

    I believe that is the same as adding BATCH=true to /etc/make.conf — just with extra typing.

  2. Robert's avatar
    Robert
    December 16, 2012 at 9:45 PM

    I just use BATCH=yes

  1. No trackbacks yet.

Leave a comment