From charlesreid1

Fink is a handy package manager for Mac OS X. It's basically a Mac analog for Ubuntu's Aptitude and RedHat's RPM (RedHat Package Manager).

Yikes, don't use Fink. This page is old and crusty. Use Homebrew instead.

Installing

You can download Fink from: http://www.finkproject.org/

Leopard (10.5)

It's really easy to install. Use the binary installer.

Snow Leopard (10.6)

Download the tarball with the fink source code in it. Run the bootstrap script, and if you want to, specify the install location. I use /fink instead of the default /sw, for obvious reasons.

./bootstrap /fink

Then just answer the questions, and it will begin the self-installation process.

IMPORTANT: The second question the bootstrap script will ask you is this:

Your hardware is a 64bit-compatible intel processor, so you have the option of running Fink in 64bit-only mode.  This
is not recommended for most users, since many more packages are available for the default mode (which is mostly 32bit
but includes some 64bit packages).  Which mode would you like to use?

(1)     Default (mostly 32bit)
(2)     64bit-only

Choose a mode: [1] 2

It is important that you choose 2, not the default 1! Otherwise, when you build other software that links to Fink, you will experience errors such as:

ld: warning: in /sw/lib/libpangocairo-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libpango-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libcairo.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgobject-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgmodule-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libglib-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libintl.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgtk-x11-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgdk-x11-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libatk-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgio-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libpangoft2-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgdk_pixbuf-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libfreetype.dylib, file was built for i386 which is not the architecture being linked (x86_64)

Using

Making Sure Fink is Up-To-Date

Fink requires a couple of commands to make sure everything is working smoothly. These should be run every so often.

fink selfupdate

fink selfupdate-rsync

fink index -f

fink update-all

Installing Binaries Not Part of Fink

There are some programs which are not a part of Fink, but are in the Fink package database. For example, GLUT (an OpenGL utility):

These programs must be manually added to Fink.

1. Download the .info file that is provided. (If none is provided, skip to #Creating Your Own Fink Packages).

2. Put the .info file in /sw/fink/dists/local/main/finkinfo/ into a file called packagename.info

3. Make sure your Fink is up-to-date by running fink selfupdate

4. Run fink configure to set the verbosity level to high, and to enable the unstable tree (this will include local packages).

5. Run fink list packagename and verify that your package shows up. If it doesn't, double check /sw/etc/fink.conf and ensure that the "Trees" line includes local/main.

6. If that still doesn't work, try fink index

7. Once you see your package, install it using fink install packagename

Creating Your Own Fink Packages

http://www.finkproject.org/doc/quick-start-pkg/quick-start-pkg.en.html

Useful Packages

  • aspell
  • bash-completion
  • bzip2
  • bzip2-dev
  • bzip2-shlibs
  • freeglut
  • freeglut-shlibs
  • fwipe
  • gzip
  • imagemagick
  • imagemagick10-shlibs
  • lynx
  • lynx-ssl
  • mysql-client
  • mysql-dev
  • mysql-shlibs
  • mysql15-shlibs
  • ncurses
  • readline
  • readline-shlibs
  • tar
  • tetex
  • unzip
  • watch
  • wget