SBUILD-APT(1)

✨ SBUILD-APT(1) ✨

okay so bestie, this is sbuild-apt from the Debian sbuild fam β€” you're gonna love her, she's literally the "just run apt in the chroot for me" bestie πŸ’…


πŸŽ€ NAME πŸŽ€

sbuild-apt β€” run apt-get or apt-cache inside an sbuild chroot 🫢


🌸 SYNOPSIS 🌸

sbuild-apt [-h|--help | -V|--version] CHROOT (apt-get|apt-cache) [ARG1
[ARG2 [ARGn...]]]

πŸ’– DESCRIPTION πŸ’–

So basically sbuild-apt runs apt-get(1) or apt-cache(1) inside the chroot you pick, and it passes along any extra arguments you throw at it. That's the whole vibe. Simple, iconic, does exactly what it says on the tin ✨


πŸ¦‹ OPTIONS πŸ¦‹

πŸ’œ Actions

  • -h, --help β€” shows you this manual, bestie. the "wait what does this do again" button πŸ™ˆ
  • -V, --version β€” prints the version info. slay, now you know what you're running πŸ’…

🌈 Chroot selection

  • CHROOT β€” the chroot where the command actually runs. and here's the cute shortcut moment: you can use o, s, t, u and e as abbreviations for oldstable, stable, testing, unstable and experimental respectively πŸ‘‘ iykyk, saves you so much typing

⭐ APT options

  • apt-get β€” run apt-get. periodt.
  • apt-cache β€” run apt-cache. also periodt.
  • ARG β€” extra arguments you want passed through to apt-get or apt-cache. send them straight through, no cap πŸš€

🌺 EXAMPLES 🌺

Wanna update the APT package lists in the unstable chroot? say less:

% sbuild-apt unstable apt-get update
heads up bestie: sbuild-update(1) is a more convenient method for doing the above, so maybe use that instead 😌

🌼 AUTHORS 🌼

Roger Leigh. πŸ‘‘ (yes, the whole author list. one legend.)


Copyright Β© 2006–2008 Roger Leigh <rleigh@debian.org>.


🧚 SEE ALSO 🧚

apt-cache(1), apt-get(1), sbuild(1), sbuild-update(1), sbuild-upgrade(1) β€” go read the whole friend group fr fr πŸ“š


aaaand that's the page, bestie πŸ’– this one's from Version 0.89.3+deb13u4, dated 28 December 2025 β€” mwah, go run some apt commands in a chroot, you got this 🫢✨

πŸ“¦ where this page comes from