Nasser Heidari

2010-03-01

FreeBSD: make install – Accept default config

Filed under: freebsd — Nasser Heidari @ 08:28

Using FreeBSD ports means compiling software by executing make install clean. This is great since it automatically fetches the dependencies then compile them.
using make install clean, most of the packages have configuration options in which I have to manually choose the options. So if I install packageA with a lot of dependencies, those dependencies may have each a configuration option in which I have to select.
To select default Configuration i know 3 options that you can make use :
1.
For csh-based Shell:
# setenv BATCH yes
OR for sh-based Shell:
# export BATCH=”yes”

2.
# make -DBATCH install clean

3.
# make config-recursive
usually to get all of the options displayed for you to choose upfront. I say “usually” because not all ports support it, but most do.

Advertisements

3 Comments »

  1. That’s great but is there a way to use it with portupgrade?
    I’m still new to FreeBSD which I find very interesting.

    Regards,
    Med

    Comment by Med Berdai — 2010-03-02 @ 01:49

  2. Having BATCH Variable also should work for portupgrade:

    For csh-based Shell:
    # setenv BATCH yes

    OR for sh-based Shell:
    # export BATCH=”yes”

    Comment by Nasser Heidari — 2010-03-02 @ 05:34

  3. Thanks :) I’ll try that the next time I upgrade.
    It’s a great blog, excellent content.
    keep up the good work!

    Comment by Med Berdai — 2010-03-02 @ 06:09


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

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: