by jhh · 13y ago · 0 comments
For installing:
pushd /usr/ports/*/$PACKAGE ; sudo make install clean && popd
For upgrading (ports): sudo portsnap fetch update ; sudo portmaster -ad
(In reality, portsnap is run nightly).A quick read - http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/po...
I use FreeBSD on a desktop at home and for a personal web server. I'm not performing large scale deployments (but if I were, I'd probably write a port for my application, define my dependencies, and install it just like anything else).
(cd /usr/ports/*/$PACKAGE ; sudo make install clean)
See http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu... echo BATCH=1 >>/etc/make.conf
No more prompts for options - they should all certainly have sane defaults. If not, it's a good reason to run send-pr. make config-recursive && make install clean
which runs `make config` on the package and all dependencies before installing. It's the best of both worlds IMO -- the port will build unattended and you still have a chance up-front to skim the available options for things you need. -c
--config
Run "make config-conditional" before everything for all tasks.
-C
--force-config
Run "make config" before everything for all tasks.
http://www.gsp.com/cgi-bin/man.cgi?topic=portupgradeI admit I had some level of apt-envy back when I was using portupgrade. pkgng has nicely eliminated that.
That will pull binary packages from ports builds on another machine and install and configure them.