tool for simulating superuser privileges

A fork/clone of the main debian fakeroot repository at http://git.debian.org/?p=users/clint/fakeroot.git that includes enhanced Mac OS X fakeroot support which has since been merged back into that repository as of release 1.19-2 except for the changes noted below.

This GitHub fork/clone of the debian fakeroot repository is a mirror clone with the addition of a new macosx branch that includes the Mac OS X enhancements described here. The default HEAD branch for this GitHub repository is macosx, not master! However, unless there are new Mac OS X enhancements waiting to be merged, the macosx branch should track master very closely (as in be the same as except for the doc/Makefile.am change below).

Quick Download

fakeroot-3.3.dmg macosx-v3.3 2012-05-24 Mac OS X Installer package for 10.4 or later (universal) [hashes]
fakeroot-macosx-v3.3.tar.gz macosx-v3.3 2012-05-24 Pre-bootstrapped source tarball (includes configure script) [hashes]

Branch macosx Info

Without a change to the doc/Makefile.am file like so:

diff --git a/master:doc/Makefile.am b/macosx:doc/Makefile.am
index bf5ce07..5394548 100644
--- a/master:doc/Makefile.am
+++ b/macosx:doc/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = de es fr sv nl
+##SUBDIRS = de es fr sv nl

 man_MANS = faked.1 fakeroot.1

the sudo make install command will fail on Mac OS X. The macosx branch (which is also the default HEAD branch) for this GitHub repository maintains the above change so that sudo make install will succeed after building on Mac OS X.

Supported OS X Versions

Mac OS X 10.4 and later are supported as are two-level namespace executables.


See the README and README_MACOSX.txt (for Mac OS X) files.


Suppose you wish to create an installer package for a preference pane SimplePref.prefPane so that it's installed to /Library/PreferencePanes with owner root and group admin. Assuming that a SimplePref.prefPane exists by itself in the stage subdirectory (which is located in the current directory) and fakeroot has already been installed, the following script will create SimplePref.pkg to install it:

fakeroot sh -s <<FAKEROOT_SCRIPT
chown -R root:admin stage/SimplePref.prefPane
$pm --root stage --install-to /Library/PreferencePanes \
  --id com.example.SimplePref --no-recommend --target 10.4 --out SimplePref.pkg


GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
See also the COPYING file.


You can download the raw source files of this project in either tar or zip formats.

You can also clone the project with Git by running:

git clone git://github.com/mackyle/fakeroot

Pre-bootstrapped source tarballs (i.e. do not require autotools and have a pre-generated configure script) and Mac OS X installer packages are available for these tags:

fakeroot-3.3.dmg OS X installer package (tag: macosx-v3.3)
fakeroot-macosx-v3.3.tar.gz source tarball (tag: macosx-v3.3)

See also the project’s downloads areas here and here.

Git Repository Browser

Repository browsers are available at: