Difference between revisions of "Mac Users:DarwinPorts vs Fink"

From PublicWiki
Jump to: navigation, search
 
(Installing Applications)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Fink is essentially a port of debian's apt-get to OSX and it works pretty well even with the new intel macs. On intel macs, everything is currently built from source which is slow, but it's worked well for me so far.
+
==Introduction==
 +
Darwinports and Fink are complementary projects. There is some overlap in ports and several people contribute to both the Fink and OpenDarwin projects. Fink is written in Perl and has 7000 ports. DarwinPorts is mostly written in Tcl, with some components written in C and has 3500 ports.  
  
The annoying part is that you're stuck with the versions of software that are in the package repository, which might not be all the applications you want to install.
+
==Differences==
 +
[http://fink.sourceforge.net/ Fink] is essentially a port of Debian's apt-get to OS X and it works pretty well even with the new Intel Macs. On Intel Macs, everything is currently built from source which is slow, but it seems to build everything fine so far. That said, fink maintainers have been slow to move their packages over, so many applications will be of beta quality or may not compile. The annoying part is that you're stuck with the versions of software that are in the package repository, which might not be all the applications you want to install.
  
//insert DarwinPorts info here
+
[http://darwinports.opendarwin.org/ DarwinPorts] (also known as [http://www.macports.org/ MacPorts] which mimics the FreeBSD ports architecture. Due to it's heritage (OpenDarwin) chances are that most of the DarwinPorts ports will run without problem on Mac OS X Intel. DP has historically been a source/compile system, but since v1.2.1 you can also grab binaries.
 +
 
 +
By default, DarwinPorts installs in /opt/local, and should be able to coexist peacefully with Fink which installs in /sw. There is a catch as a few X11 applications (like XFree86), is installed /usr/X11R6. So, if you install both the Fink and DarwinPorts versions of XFree86, funny things might happen. In general, pick one. If most of your packages are in Fink, use Fink. If they aren't they are probably in DarwinPorts, so use DarwinPorts.
 +
 
 +
Before you install DarwinPorts or Fink, you should go to the [http://developer.apple.com/ Apple Developer Connection] to register and download the newest version of XCode and Developer Tool. You will also need to get X11 which you can find the X11User package (OS X CD -- it's an optional install). This will allow you to use GUI apps and build applications from source which you will need at some point.
 +
 
 +
==Installing Applications==
 +
 
 +
Most people use a Terminal program to install the UNIX ports. You can find this application at /Applications/Utilities/Terminal. If you prefer a GUI package manager, you can try [http://www.codebykevin.com/portauthority.html PortAuthority] for DP or [http://finkcommander.sourceforge.net/ FinkCommander] for Fink.
 +
 
 +
Installing applications in the terminal is easy. An install is done using:
 +
<pre><nowiki>$x install $y</nowiki></pre>
 +
 
 +
where $x is one of:
 +
* port (for DP users)
 +
* fink (for Fink users)
 +
 
 +
and $y is one of these useful apps:
 +
 
 +
* [http://www.gnuplot.info/ gnuplot]
 +
* [http://www.tug.org/tetex/tetex tetex]
 +
* [http://www.gnu.org/software/fileutils/ fileutils]
 +
* [http://subversion.tigris.org/ subversion]
 +
 
 +
All available Fink packages are listed [http://pdb.finkproject.org/pdb/index.php?phpLang=en here].
 +
All available DP packages are listed [http://darwinports.opendarwin.org/ports/?by=all here].

Latest revision as of 07:20, 17 December 2006

Introduction

Darwinports and Fink are complementary projects. There is some overlap in ports and several people contribute to both the Fink and OpenDarwin projects. Fink is written in Perl and has 7000 ports. DarwinPorts is mostly written in Tcl, with some components written in C and has 3500 ports.

Differences

Fink is essentially a port of Debian's apt-get to OS X and it works pretty well even with the new Intel Macs. On Intel Macs, everything is currently built from source which is slow, but it seems to build everything fine so far. That said, fink maintainers have been slow to move their packages over, so many applications will be of beta quality or may not compile. The annoying part is that you're stuck with the versions of software that are in the package repository, which might not be all the applications you want to install.

DarwinPorts (also known as MacPorts which mimics the FreeBSD ports architecture. Due to it's heritage (OpenDarwin) chances are that most of the DarwinPorts ports will run without problem on Mac OS X Intel. DP has historically been a source/compile system, but since v1.2.1 you can also grab binaries.

By default, DarwinPorts installs in /opt/local, and should be able to coexist peacefully with Fink which installs in /sw. There is a catch as a few X11 applications (like XFree86), is installed /usr/X11R6. So, if you install both the Fink and DarwinPorts versions of XFree86, funny things might happen. In general, pick one. If most of your packages are in Fink, use Fink. If they aren't they are probably in DarwinPorts, so use DarwinPorts.

Before you install DarwinPorts or Fink, you should go to the Apple Developer Connection to register and download the newest version of XCode and Developer Tool. You will also need to get X11 which you can find the X11User package (OS X CD -- it's an optional install). This will allow you to use GUI apps and build applications from source which you will need at some point.

Installing Applications

Most people use a Terminal program to install the UNIX ports. You can find this application at /Applications/Utilities/Terminal. If you prefer a GUI package manager, you can try PortAuthority for DP or FinkCommander for Fink.

Installing applications in the terminal is easy. An install is done using:

$x install $y

where $x is one of:

  • port (for DP users)
  • fink (for Fink users)

and $y is one of these useful apps:

All available Fink packages are listed here. All available DP packages are listed here.