logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sbuild-update - update, upgrade, and clean an sbuild chroot with apt-get

Authors

       Roger Leigh.
       Andres Mejia.

Description

sbuild-update runs apt-get inside the specified chroot performing update, upgrade,  dist-upgrade,  clean,
       autoclean, and/or autoremove depending on the options specified on the command line.

       sbuild-upgrade,  sbuild-distupgrade,  and sbuild-clean, are deprecated. They now simply 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.

Examples

       To update the unstable chroot:

       % sbuild-update--updateunstable

       To upgrade the unstable chroot:

       % sbuild-update--upgradeunstable

       To clean the unstable chroot:

       % sbuild-update--cleanunstable

       To perform an update, dist-upgrade, autoclean, and autoremove for the unstable chroot:

       % sbuild-update-udarunstable

Name

       sbuild-update - update, upgrade, and clean an sbuild chroot with apt-get

Options

Actions-h, --help
              Display this manual.

       -V, --version
              Print version information.

       --arch=architecture
              Update chroot for the architecture specified.

       -u, --update
              Perform an apt-getupdate.

       -g, --upgrade
              Perform an apt-getupgrade.

       -d, --dist-upgrade
              Perform an apt-getdist-upgrade.

       -c, --clean
              Perform an apt-getclean.

       -a, --autoclean
              Perform an apt-getautoclean.

       -r, --autoremove
              Perform an apt-getautoremove.

   Chrootselection--chroot-mode=schroot|sudo
              The  sbuild  chroot  backend of the chroot to update.  The autopkgtest backend is not supported by
              this method because autopkgtest backends are always  ephemeral  and  changes  never  persist.   To
              update  a  chroot  for  schroot and sudo, sbuild-update must be executed with superuser privileges
              (for example by using sudo).  If you are using the unshare mode, sbuild-update is without function
              - instead, recreate the tarball from scratch or let sbuild  manage  them  for  you.   Defaults  to
              'schroot'.

       CHROOT The  chroot  to  use.   Note  that  ‘o’,  ‘s’,  ‘t’,  ‘u’ and ‘e’ may be used as abbreviations for
              ‘oldstable’, ‘stable’, ‘testing’, ‘unstable’ and ‘experimental’, respectively.

See Also

sbuild(1), sbuild-apt(1),

Version 0.88.3ubuntu2.1                            02 May 2025                                  SBUILD-UPDATE(1)

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...]]

See Also