Updating ports collection
To upgrade a copy of Mac Ports that was installed from source to the newer release of the source code, simply repeat the source install with the newer version of the Mac Ports source code.
Uninstalling Mac Ports can be a drastic step, and depending on the issue you are experiencing, you may not need to do so.
The following notational conventions are used in the Mac Ports Guide to distinguish between terminal input/output, file text, and other special text types.
This chapter shows you how to install Mac Ports and its prerequisites step-by-step.
But using Mac Ports to manage your open source software provides several other significant advantages.
For example, Mac Ports: Mac Ports is developed on OS X, though it is designed to be portable so it can work on other Unix-like systems, especially those descended from the Berkeley Software Distribution (BSD). Mac Ports base can be compiled on Linux (and possibly other POSIX-compatible systems) where it is mainly used to set up mirrors and generate support files for installations on OS X.
If you wish to create Installer packages with If you are using Mac OS X 10.6, there are two branches of Xcode which could be considered to be the latest, 3.2.x and 4.x.
If you need to uninstall Mac Ports, and All that will be left in your installation prefix now will be files that were not registered to any port.
The selfupdate command installs the latest ports tree, and updates Mac Ports base to the latest released version.
Mac Ports base upgrades are performed automatically (when a newer release is available) during a selfupdate operation.
This includes configuration files, databases, any files which Mac Ports renamed in order to allow a forced installation or upgrade, and the base Mac Ports software itself.
You may wish to save your configuration files (most are in sudo rm -rf \ /opt/local \ /Applications/Darwin Ports \ /Applications/Mac Ports \ /Library/Launch Daemons/org.macports.* \ /Library/Receipts/Darwin Ports*\ /Library/Receipts/Mac Ports*\ /Library/Startup Items/Darwin Ports Startup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \ ~/.macports If you use a shell other than bash (perhaps tcsh), you may need to adjust the above to fit your shell's syntax.You can also get the command line tools from the Apple developer website.