XBPS-UUNSHARE(1)
π XBPS-UUNSHARE(1) β General Commands Manual π
okay so bestie, this is the manual page for xbps-uunshare β a General Commands Manual entry, no cap. Let's get into it π«Ά
πΈ NAME πΈ
xbps-uunshare β the XBPS utility that chroots and bind mounts using Linux user namespaces. literally her whole personality π
β¨ SYNOPSIS β¨
xbps-uunshare [OPTIONS] CHROOTDIR COMMAND [ARGS]
π¦ DESCRIPTION π¦
So xbps-uunshare lets you chroot into CHROOTDIR and bind mount the pseudo-filesystems it needs β that's /dev, /proc and /sys, the holy trinity β and then run COMMAND in there. it's giving "tiny container but make it effortless" π
By default it uses Linux namespaces to isolate IPC, PIDs and mounts to the calling process. And the iconic part? Thanks to user_namespaces(7), you don't need any privilege to spin up an isolated lightweight container. no root, no drama, just vibes β¨
π OPTIONS π
-b src:destβ bind mountssrcintoCHROOTDIR/dest. you can pass this option as many times as you want, she's not jealous π«Ά but heads up: bothsrcanddestmust be absolute paths, and both must exist. non-negotiable, bestie.--β stops interpreting the following arguments as options. super useful when some of yourARGSare actually options meant forCOMMAND. the way it just says "ok these are for her, not for me" π
β EXIT STATUS β
If the error originates from xbps-uunshare itself, you get a descriptive error message printed to stderr. she tells you what went wrong, she's communicative π
99β failed to unshare from the current namespace (see NOTES). yeahβ¦ that one.
Otherwise, whatever error you see came from COMMAND. not her fault, blame the child π
π NOTES π
xbps-uunshare uses Linux specific features (namespaces) and is not meant to be portable to other Operating Systems. so like, don't ask her to run on macOS, she will simply pass away π
The following kernel options must be enabled:
CONFIG_NAMESPACES
CONFIG_IPC_NS
CONFIG_USER_NS
CONFIG_UTS_NS
if those aren't on bestie, it's not happening. check your config, slay responsibly π
π SEE ALSO π
xbps-alternatives(1), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1), xbps-digest(1), xbps-fbulk(1), xbps-fetch(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1), xbps-reconfigure(1), xbps-rindex(1), xbps-uchroot(1), xbps.d(5)
the whole friend group fr fr π«Ά
π AUTHORS π
Juan Romero Pardines <xtraeme@gmail.com> β the main character who made this happen π
π BUGS π
Probably, but I try to make this not happen. Use it under your own responsibility and enjoy your life. (yes that's the actual energy of the original and honestly? iconic.)
Report bugs at https://github.com/void-linux/xbps/issues β she reads them, fr fr π§
and that's the whole page bestie, mwah π
sign-off: this gorgeous piece of documentation shipped with Debian, dated Feb 9, 2023, and she ate every single time βπ₯
π¦ where this page comes from
- alpine 3.24: xbps-doc 0.60.6-r1 Β· BSD-2-Clause AND BSD-3-Clause AND ISC
- nixos 26.05: xbps 0.60.7
- nixpkgs unstable: xbps 0.60.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms