macOS
brew install fakerootlocal Homebrew formula metadata
sudo port install fakerootMacPorts ports tree · sysutils/fakeroot/Portfile · 来源: api.github.com
安装
brew install fakerootlocal Homebrew formula metadata
sudo port install fakerootMacPorts ports tree · sysutils/fakeroot/Portfile · 来源: api.github.com
sudo apk add fakerootAlpine Linux edge package indexes · fakeroot · 来源: dl-cdn.alpinelinux.org
sudo apt install fakerootDebian stable package indexes · fakeroot · 来源: deb.debian.org
sudo dnf install fakerootFedora Rawhide package metadata · fakeroot · 来源: dl.fedoraproject.org
nix profile install nixpkgs#fakerootnixpkgs package indexes · pkgs/by-name/fa/fakeroot/package.nix · 来源: api.github.com
sudo pacman -S fakerootArch Linux sync databases · fakeroot · 来源: geo.mirror.pkgbuild.com
sudo zypper install fakerootopenSUSE Tumbleweed package metadata · fakeroot · 来源: download.opensuse.org
概览
Provide a fake root environment
历史
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.
安全态势
没有找到 fakeroot 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
faked | cli | 全局可执行文件 | |
fakeroot | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://tracker.debian.org/pkg/fakeroot
安装元数据
| 软件包键 | brew:fakeroot |
|---|---|
| 版本 | 1.38.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/fakeroot |
| 主页 | https://tracker.debian.org/pkg/fakeroot |
| 仓库 | https://salsa.debian.org/clint/fakeroot |
| 上游文档 | https://manpages.debian.org/fakeroot |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.38.1.orig.tar.gz |
| 最后更新 | 2026-05-21T04:00:18Z |
| Pulse | updated |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 fakeroot来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.