Installing multiple ports quietly and efficiently

Vincent Hoffman vince at unsane.co.uk
Mon Oct 6 20:26:49 UTC 2008


Kelly Jones wrote:
> Here's one way to install multiple FreeBSD ports "unattended" on a
> machine:
>
> cd /usr/port/foo/prog1; make install; cd/usr/ports/foo/prog2; make install
>
> and so on (perhaps even in a shell script). Two problems:
>
>  % It's ugly. I'd prefer "cd /usr/ports; make foo/prog1 foo/prog2 ..."
>   
I'd suggest using portupgrade then just
portinstall prog1 prog2 prog3

>  % "make install" often pops up windows asking me to choose
>  configuration options, and hangs until I do so.
>
>   
> I want to install 50 apps on a new server, but not have to watch it
> constantly. I want to tell ports: "just use the default options for
> now: if I'm unhappy w/ them, I'll come back, do a 'make rmconfig' and
> rebuild".
>
> How can I do this?
>
>   
add
BATCH=yes
to /etc/make.conf


Vince


More information about the freebsd-questions mailing list