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.

Advertisements
Categories: FreeBSD
  1. 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
    December 16, 2012 at 9:45 PM

    I just use BATCH=yes

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: