I am new to BSD

Chad Perrin perrin at apotheon.com
Sat May 1 19:12:55 UTC 2010


On Fri, Apr 30, 2010 at 10:34:52AM +0000, osp at aloha.com wrote:
> 
> cd /usr/ports/net/asterisk
> make
> (get a snack)
> make install
> make clean

Once you're in the appropriate directory, all the make commands can be
kicked off at once:

    make install clean


> 
> I prefer to use portinstall and portupgrade. 

So do I, generally, but knowing how to use make directly to install ports
is still a good skill to have, so it's good you brought it up.


> 
> Be sure to use portsnap to freshen up your ports tree and when you add a
> new port to an existing system do a portupgrade -a first so what you
> already have is up to date.
> 
> Be sure to read /usr/ports/UPDATING before you update anything.

The importance of this cannot very easily be overstated.  It's better to
deal with any special handling the upgrading of specific ports need in
advance than to have things break and need to go back and fix them
afterward.  The /usr/ports/UPDATING file gives the guidance we need to
ensure that things get handled right the first time.

In fact, I basically never use portupgrade -a, because I want to make
sure I don't overlook something.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100501/46edbb3d/attachment.pgp


More information about the freebsd-questions mailing list