On Fri, Apr 30, 2010 at 10:34:52AM +0000, [email protected] 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 ]

Attachment: pgpGjA1O0WAkv.pgp
Description: PGP signature

Reply via email to