macOS
brew install fakerootlocal Homebrew formula metadata
sudo port install fakerootMacPorts ports tree · sysutils/fakeroot/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für fakeroot in AI-Agent-Workflows.
Installation
brew install fakerootlocal Homebrew formula metadata
sudo port install fakerootMacPorts ports tree · sysutils/fakeroot/Portfile · Quelle: api.github.com
sudo apk add fakerootAlpine Linux edge package indexes · fakeroot · Quelle: dl-cdn.alpinelinux.org
sudo apt install fakerootDebian stable package indexes · fakeroot · Quelle: deb.debian.org
sudo dnf install fakerootFedora Rawhide package metadata · fakeroot · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#fakerootnixpkgs package indexes · pkgs/by-name/fa/fakeroot/package.nix · Quelle: api.github.com
sudo pacman -S fakerootArch Linux sync databases · fakeroot · Quelle: geo.mirror.pkgbuild.com
sudo zypper install fakerootopenSUSE Tumbleweed package metadata · fakeroot · Quelle: download.opensuse.org
Überblick
Provide a fake root environment
Verlauf
fakeroot runs a command in an environment where file manipulation appears to happen with root privileges, without granting real root access. It is a core packaging utility because archives can be built with root-looking ownership, permissions, and device metadata by unprivileged users.
fakeroot entered Debian in June 1997 as a tool by Joost Witteveen. Early changelog entries show it rapidly gaining wrappers for chown, chmod, stat, mkdir, rename, and related calls, plus IPC handling and tests needed to make dpkg-buildpackage -rfakeroot reliable.
The manpage explains the central implementation: fakeroot replaces selected file-manipulation library functions with wrappers loaded through LD_PRELOAD, while the faked daemon preserves the fake ownership and permission view. The design intentionally avoids wrapping some calls such as open() because too many libc interactions would create fragile loops and portability problems.
Over time fakeroot became maintained as a Debian project package, with authors and contributors including Joost Witteveen, Clint Adams, Timo Savola, Regis Duchesne, Mikhail Gusarov, J.H.M. Dassen for the manual page, and Kyle J. McKay for OS X support. The current Salsa repository tracks ongoing fixes for libc, architecture, translation, xattr, time64, and cross-build behavior.
fakeroot was specifically written to enable users to create Debian packages without root privileges. The manpage documents dpkg-buildpackage -rfakeroot and debuild -rfakeroot as normal workflows, and notes that debuild defaults to fakeroot in modern usage.
Its adoption spread beyond Debian because the problem is generic to Unix packaging: package builds often need archive metadata to say root:root even though the build user should not be root. The package-manager list in the input shows fakeroot packaged across APK, Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Arch/pacman, Ubuntu, and openSUSE/zypper ecosystems.
Typical use wraps only the packaging or archive-creation phase, not the configure or binary build phase. The manpage warns that configure-style probes can get confused when fakeroot changes apparent system behavior, and recommends letting Debian build targets call fakeroot at the correct stage.
fakeroot is also useful for tar, ar, .deb, backup, and restore workflows that need root-looking ownership or device information in an archive. Its -s and -i options can save and reload a fakeroot environment, with documented caveats about touching files outside the saved fake view.
fakeroot matters because it helped make unprivileged package builds routine. Before tools like fakeroot, a packager either needed real root privileges to create files with root ownership before archiving, or had to construct archive metadata directly.
It is also an instructive Unix packaging artifact: small, sharp, LD_PRELOAD-based, explicitly non-setuid, and honest about its limitations. Distribution maintainers care about it because subtle libc, stat, xattr, and architecture changes can affect whether huge portions of a packaging ecosystem build reproducibly without privilege.
Sicherheitslage
Für fakeroot wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
faked | cli | globales Executable | |
fakeroot | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://tracker.debian.org/pkg/fakeroot
Installationsmetadaten
| Paketschlüssel | brew:fakeroot |
|---|---|
| Version | 1.38.1 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/fakeroot |
| Homepage | https://tracker.debian.org/pkg/fakeroot |
| Repository | https://salsa.debian.org/clint/fakeroot |
| Upstream-Dokumentation | https://manpages.debian.org/fakeroot |
| Lizenz | GPL-3.0-or-later |
| Quellarchiv | https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.38.1.orig.tar.gz |
| Zuletzt aktualisiert | 2026-05-21T04:00:18Z |
| Pulse | updated |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | fakeroot |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
fakeroot 1.37.1.1-1
tool for simulating superuser privileges
sudo apt install fakerootlibfakeroot 1.37.1.1-1
tool for simulating superuser privileges - shared libraries
sudo apt install libfakerootfakeroot
nix profile install nixpkgs#fakerootfakeroot 1.33-1
tool for simulating superuser privileges
sudo apt install fakerootlibfakeroot 1.33-1
tool for simulating superuser privileges - shared libraries
sudo apt install libfakerootfakeroot 1.37.2-r0
Gives a fake root environment, useful for building packages as a non-privileged user
https://packages.debian.org/fakeroot
sudo apk add fakerootfakeroot-dbg 1.37.2-r0
Gives a fake root environment, useful for building packages as a non-privileged user (debug symbols)
https://packages.debian.org/fakeroot
sudo apk add fakeroot-dbgfakeroot-doc 1.37.2-r0
Gives a fake root environment, useful for building packages as a non-privileged user (documentation)
https://packages.debian.org/fakeroot
sudo apk add fakeroot-docfakeroot 1.37.1-4.fc44
Gives a fake root environment
https://tracker.debian.org/pkg/fakeroot
sudo dnf install fakerootfakeroot-libs 1.37.1-4.fc44
Gives a fake root environment (libraries)
https://tracker.debian.org/pkg/fakeroot
sudo dnf install fakeroot-libsfakeroot 1:1.37.2-1
Tool for simulating superuser privileges
https://tracker.debian.org/pkg/fakeroot
sudo pacman -S fakerootfakeroot 1.38-1.1
Wrapper that gives a fake root environment
https://tracker.debian.org/pkg/fakeroot
sudo zypper install fakerootfakeroot
sudo port install fakerootQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.