Translation(s): English - Italiano

(!) ?Discussion

Gives a fake root environment , to remove the need to become root for a package build.

fakeroot runs a command in an environment where it appears to have root privileges for file manipulation. This is useful for allowing users to create archives (tar, ar, .deb etc.) with files in them with root permissions/ownership. Without fakeroot one would have to have root privileges to create the constituent files of the archives with the correct permissions and ownership, and then pack them up, or one would have to construct the archives directly, without using the archiver


This package is intended to enable something like:

  dpkg-buildpackage -rfakeroot

i.e. to remove the need to become root for a package build. This is done by setting LD_PRELOAD to, which provides wrappers around getuid, chown, chmod, mknod, stat, and so on, thereby creating a fake root environment.

Previously, fakeroot required SYSV IPC to operate, but the current version now supports TCP/IP for messaging as well.

Error Messages

fakeroot: nested operation not yet supported

This error occurs if an attempt is made to run fakeroot from within a fakeroot environment. The error may occur during an attempt to build project code from within a fakeroot environment and has been observed to occur when project builder tools are being used (such as ?debuild).

See Also

Debian specific information

Upstream specific information

CategoryRoot | CategorySoftware | CategoryProgramming