Get DarwinPorts

DarwinPorts version is available in binary form as a dmg disk image -10.4.dmg">for Tiger (Universal) or -10.3.dmg">Panther, both containing a pkg installer, or version in source form as either a .tar.bz2">tar.bz2 package or a .tar.gz">tar.gz one. Checksums for all these are contained .chk.txt">here.

To get a files listing of all our available downloads checkout the downloads section

Please note that in order to install and run DarwinPorts on Mac OS X you must have Apple's Xcode installed, found at the Apple Developer site or on your Mac OS X installation CDs/DVD.

If you want to use DarwinPorts on a platform other than Mac OS X, please be aware of the following requirements (we assume that you have basics such as gcc):

Mac OS X Package (.pkg) Installer

The easiest way to install DarwinPorts on a Mac OS X system is by downloading the -10.4.dmg">dmg for Tiger or the -10.3.dmg">one for Panther and running Installer.app on the pkg contained therein by double clicking on them, following the on-screen instructions until completion. This procedure will place a fully functional and default DarwinPorts installation on your host system, ready for usage. If needed, your shell configuration files will be adapted by the installer to include the necessary settings to run DarwinPorts. You may need to open a new shell for these changes to take effect.

Although not strictly necessary, it is still recommended that you synchronize your recent installation with our rsync server to ensure you have the latest release available of the DarwinPorts infrastructure and of the “Portfiles” containing the instructions employed in the building and installation of ports. To accomplish this simply execute:

sudo port -d selfupdate

It is also recommended to run the above command on a regular basis to keep your installation always current. At this point you should be ready to enjoy DarwinPorts!

Source Installation

If on the other hand you decide to install from source, there are still a couple of things you will need to do once you've downloaded the tarball before you can install a port with the DarwinPorts system, namely compiling and installing DarwinPorts itself. “cd” into the directory where you downloaded the package and run “tar xjvf .tar.bz2">DarwinPorts-.tar.bz2” or “tar xzvf .tar.gz">DarwinPorts-.tar.gz”, depending on whether you downloaded the bz2 tarball or the gz one, respectively. This will unpack the DarwinPorts sources that you will proceed to build and install. To do so, execute the following:

cd DarwinPorts-

./configure && make && sudo make install

Optionally:

cd ../
rm -rf DarwinPorts-*

These steps need to be perfomed from an administrator account, for which “sudo” will ask the password upon installation. This procedure will install a pristine DarwinPorts system and, if the optional steps are taken, remove the as of now unnecessary DarwinPorts- directory and corresponding tarball. To customize your installation you should read the output of “./configure --help | more” and pass the appropriate options to the configuration script in the steps detailed above.

You will need to adapt your shell's configuration files to find the binaries installed by DarwinPorts. Lastly, you need to synchronize your recent installation with OpenDarwin servers:

sudo port -d selfupdate

Upon completion DarwinPorts will be ready to install ports. Again, it is recommended to run the above command on a regular basis to keep your installation current.

Alternatively, you can refer to the README_RELEASE1 file contained in the release tarball for basic installation and usage instructions.

Help

Help is also available should you need it.

CVS Sources

If you are developer or a user with a taste for the bleeding edge and wish for the latest changes and feature additions, you may acquire the DarwinPorts sources through CVS.

Use the following commands to check the project out of the OpenDarwin anonymous CVS repository:

cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports

When the server asks you for a password, simply press return on your keyboard—the password is empty.

If you do not want to bother with fetching from CVS, you can download a nightly updated CVS-snapshot. Once extracted, you can keep it up to date with the usual “cvs update” commands.

If you'd simply like to view the CVS repository without checking it out, you can do so via CVSweb.