Subversion hosting, CVS hosting, Trac hosting, Bugzilla hosting and software collaboration Providing hosted Subversion, CVS, Trac and Bugzilla repositories

January 28, 2008

Update the FreeBSD Ports Tree

Filed under: Software Development — Tags: , — Greg Larkin @ 2:18 pm

Hi everyone,

Now that we’ve got the FreeBSD 6.2 VM booted up under VMware Player or VMware Server, we need to make sure that we’ve got the latest version of the ports tree installed. Since you may be reading this well after I build the original VM image, the FreeBSD ports tree has probably changed a lot, and it’s possible that new versions of the PHP frameworks are available.

First of all, what is the ports tree? Quite simply, it’s a large collection of directories (18,000+ at last count!), one for every 3rd party software package that has been ported to FreeBSD. What does this gain you? The idea is that any piece of ported software can be installed on your FreeBSD system as easily as typing the following command in the appropriate directory:

cd /usr/ports/<category>/<appname> && make install clean

cd /usr/ports/databases/mysql50-server && make install clean

That’s it! The same command will install anything from a simple Perl module to the Java development kit.

The command to update your FreeBSD VM with the latest ports tree is equally simple. Log in as root and type the following:

portsnap fetch update

You’ll see some output like this:

Sample FreeBSD portsnap run

Now we’re ready to install some PHP frameworks, but that’s a post for another day!

Bookmark and Share

Keep in touch,
Greg, LLC

1 Comment

  1. FreeBSD ports tree 업데이트…

    FreeBSD 6.2 에서는 jdk1.6 port가 없어서 ports tree update root 계정으로 로그인 해서 아래 커맨드를 날려준다. portsnap fetch update…

    Trackback by 영빈,수빈 아빠 육아일기 — March 14, 2008 @ 12:55 am

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Call me - Greg Larkin: error

Powered by WordPress