SBUILD-UPDATE(1)
π SBUILD-UPDATE(1) β the Debian sbuild glow-up guide
okay bestie, this is a page from the Debian sbuild manual set, and it's literally about giving your chroot a whole makeover with apt-get. let's go π
β¨ NAME β¨
sbuild-update β update, upgrade, and clean an sbuild chroot with apt-get. it's giving spa day for your chroot, no cap π
πΈ SYNOPSIS πΈ
sbuild-update [-h|--help] [-V|--version] [--arch=architecture]
[-u|--update] [-g|--upgrade] [-d|--dist-upgrade] [-c|--clean]
[-a|--autoclean] [-r|--autoremove] [--chroot-mode=schroot|sudo] CHROOT1
[CHROOT2 [CHROOTn...]]
(DEPRECATED) sbuild-upgrade [-h|--help] [-V|--version] CHROOT1 [CHROOT2
[CHROOTn...]]
(DEPRECATED) sbuild-distupgrade [-h|--help] [-V|--version] CHROOT1
[CHROOT2 [CHROOTn...]]
(DEPRECATED) sbuild-clean [-h|--help] [-V|--version] [-c|--clean]
[-a|--autoclean] [-r|--autoremove] CHROOT1 [CHROOT2 [CHROOTn...]]
π¦ DESCRIPTION π¦
so sbuild-update runs apt-get inside the chroot you point it at, and it does update, upgrade, dist-upgrade, clean, autoclean, and/or autoremove β all depending on which options you pass on the command line. pick your combo, it handles the rest π«Ά
and now the sad part π sbuild-upgrade, sbuild-distupgrade, and sbuild-clean are deprecated. they're basically legacy lore at this point β they just run sbuild-update with the appropriate options (--upgrade or --dist-upgrade for sbuild-upgrade or sbuild-distupgrade respectively) along with whatever arguments were passed in the scripts. same energy, new wrapper β¨
π OPTIONS π
π Actions
-h,--helpβ display this manual. the "what does anything do" button π-V,--versionβ print version information. icon behaviour fr--arch=architectureβ update the chroot for the architecture specified. very "I know my target" of you π¦-u,--updateβ perform anapt-get update.-g,--upgradeβ perform anapt-get upgrade.-d,--dist-upgradeβ perform anapt-get dist-upgrade.-c,--cleanβ perform anapt-get clean.-a,--autocleanβ perform anapt-get autoclean.-r,--autoremoveβ perform anapt-get autoremove.
π§ Chroot selection
--chroot-mode=schroot|sudoβ this is the sbuild chroot backend of the chroot you're updating. defaults to'schroot'.
β οΈ okay important: the autopkgtest backend is not supported by this method, because autopkgtest backends are always ephemeral and changes never persist. so don't even try it, bestie π
π₯ also: to update a chroot forschrootandsudo,sbuild-updatemust be executed with superuser privileges (for example by usingsudo). no privilege, no slay.
π and if you're using unshare mode, sbuild-update is without function β instead, recreate the tarball from scratch or let sbuild manage them for you. not me being useless in unshare mode π
CHROOTβ the chroot to use. cute shortcut era: note thatβoβ,βsβ,βtβ,βuβandβeβmay be used as abbreviations forβoldstableβ,βstableβ,βtestingβ,βunstableβandβexperimentalβ, respectively. iykyk β
π EXAMPLES π
to update the unstable chroot:
% sbuild-update --update unstable
to upgrade the unstable chroot:
% sbuild-update --upgrade unstable
to clean the unstable chroot:
% sbuild-update --clean unstable
to perform an update, dist-upgrade, autoclean, and autoremove for the unstable chroot:
% sbuild-update -udar unstable
see that -udar? four flags, one vibe. main character energy π
π AUTHORS π
- Roger Leigh.
- Andres Mejia.
π COPYRIGHT π
- Copyright Β© 2006β2009 Roger Leigh
<rleigh@debian.org>. - Copyright Β© 2010 Andres Mejia
<mcitadel@gmail.com>.
π₯ SEE ALSO π₯
and that's the whole page, bestie π«Ά you're now officially qualified to update, upgrade, and clean chroots like it's nothing. β¨ Version 0.89.3+deb13u4 β 28 December 2025 β¨ go be iconic with your chroots π π
π¦ where this page comes from
- debian trixie: sbuild 0.89.3+deb13u4 Β· GPL-2.0-or-later
- Copyright Β© 2005-2009 Roger Leigh <rleigh@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms