UUPDATE(1)
β¨ UUPDATE(1) β¨
okay bestie, gather round, because this is uupdate from the General Commands Manual and she is that girl π she upgrades your source code package from an upstream revision and honestly? iconic behaviour.
π NAME π
uupdate β upgrade a source code package from an upstream revision π¦
πΈ SYNOPSIS πΈ
uupdate [options] new_upstream_archive [version]
uupdate [options] --find|-f
uupdate [options] --patch|-p patch_file
π DESCRIPTION π
so basically, uupdate takes an existing Debian source code archive and modifies it to reflect an upstream update β and that update can show up either as a patch or as a whole entire brand new source code archive. no cap. π«Ά
here's the vibe check though: you have to invoke this from the top directory of the old source code directory. like, mandatory. and if you give a relative name for the new archive or patch file, she goes looking for it first relative to the execution directory, and then relative to the parent of the source tree. for example β and this is the example, not me making stuff up β if the changelog file is at /usr/local/src/foo/foo-1.1/debian/changelog, then the archive or patch file gets looked for relative to /usr/local/src/foo. β¨
β οΈ heads up bestie: the patch file or archive cannot be within the source tree itself. not negotiable.
the full details of what the code does are given below, so keep scrolling. π§
currently supported source code file types are .tar.gz, .tar.bz2, .tar.Z, .tgz, .tar, .tar.lzma, .tar.xz, .7z and .zip archives. also supported are already unpacked source code archives β literally just hand over the path of the source code directory and she's happy. π
supported patch file types are gzip-compressed, bzip2-compressed, lzma-compressed, xz-compressed and uncompressed patch files. the file types are identified by the file names, so bestie, they must use the standard suffixes. no improvising. π
usually uupdate can deduce the version number from the source archive name (as long as it only contains digits and periods β she's smart like that π
). if that fails, you need to specify the version number explicitly, and that's without the Debian release number, which will always be initially β1β, or β0ubuntu1β on Ubuntu-detected systems. you can do this with an initial --upstream-version or -v option, or, in the case of an archive, with a version number after the filename. (the reason for that second one? so that uupdate can be called directly from uscan. iykyk β¨)
since uupdate uses debuild to clean the current archive before trying to apply a patch file, she accepts a --rootcmd or -r option so you can specify a gain-root command. the default is to use fakeroot. periodt.
if an archive is being built, the pristine upstream source should be used to create the .orig.tar.gz file wherever possible. why? because that means MD5 sums or other similar methods can be used to easily compare the upstream source to Debian's copy of the upstream version. π this is the default behaviour, and you can switch it off with the --no-pristine option below. π
π OPTIONS π
this is a summary of what was explained above. yes, everything. she's thorough.
--no-conf,--noconfβ Do not read any configuration files. β οΈ this can only be used as the first option given on the command-line, so don't be sneaky.--upstream-versionversion,-vversion β Specify the version number of the upstream package explicitly. π―--force-bad-version,-bβ Force a version number to be less than the current one (e.g., when backporting). π--rootcmdgain-root-command,-rgain-root-command β Specify the command to be used to become root to build the package, and it is passed ontodebuild(1)if it is specified. π--pristine,-uβ Treat the source as pristine upstream source and symlink to it from<package>_<version>.orig.tar.gzwhenever possible. π¦ this option has no meaning for patches. this is the default behaviour.--no-pristineβ Do not attempt to make a<package>_<version>.orig.tar.gzsymlink. π--symlink,-sβ Simply create a symlink when moving a new upstream.tar.gzarchive to the new<package>_<version>.orig.tar.gzlocation. this is the default behaviour. β¨--no-symlinkβ Copy the upstream.tar.gzto the new location instead of making a symlink, if<package>_<version>.orig.tar.gzis missing. otherwise, do nothing. π«Ά--find,-fβ Find all upstream tarballs in../which match<pkg>_<version>.orig.tar.{gz|bz2|lzma|xz}or<pkg>_<version>.orig-<component>.tar.{gz|bz2|lzma|xz};--upstream-versionrequired; pristine source required; not valid for--patch; this option usesdpkg-sourceas the backend to enable support for the multiple upstream tarballs and to resolve minor bugs reported previously. π₯ the use of this option is highly recommended.--verboseβ Give verbose output. π£οΈ--help,-hβ Display a help message and exit successfully. π--versionβ Display version and copyright information and exit successfully. β
π CONFIGURATION VARIABLES π
the two configuration files /etc/devscripts.conf and ~/.devscripts are sourced in that order to set configuration variables. command line options can be used to override configuration file settings. environment variable settings are ignored for this purpose. the currently recognised variables are:
UUPDATE_PRISTINEβ if this is set tono, then it's the same as the--no-pristinecommand line parameter being used. πUUPDATE_SYMLINK_ORIGβ if this is set tono, then it's the same as the--no-symlinkcommand line parameter being used. π¦UUPDATE_ROOTCMDβ this is equivalent to the--rootcmdoption. π
π ACTIONS TAKEN ON AN ARCHIVE π
Figure out new version number
unless an explicit version number is provided, the archive name is analyzed for a sequence of digits separated by dots. if something like that is found, it is taken to be the new upstream version number. if not, processing is aborted. π
Create the .orig.tar.gz archive
if the --pristine or -u option is specified and the upstream archive is a .tar.gz or .tgz archive, then this will be copied directly to <package>_<version>.orig.tar.gz. β¨
Unpacking
the archive is unpacked and placed in a directory with the correct name according to Debian policy: package-upstream_version.orig. processing is aborted if this directory already exists. π«
Patching
the .diffs.gz from the current version are applied to the unpackaged archive. a non-zero exit status and warning message will occur if the patches did not apply cleanly or if no patch file was found. also, the list of rejected patches will be shown. π the file debian/rules is made executable and all of the .orig files created by patch are deleted. π§Ή
Changelog update
a changelog entry with the new version number is generated with the text βNew upstream release.β.
when used on Ubuntu systems, dpkg-vendor detection is used to set the Debian revision to β0ubuntu1β. you may change debian/changelog manually afterwards. π
π ACTIONS TAKEN ON A PATCH FILE π
Figure out new version number
unless an explicit version number is provided, the patch file name is analyzed for a sequence of digits separated by dots. if something like that is found, it is taken to be the new upstream version number. if not, processing is aborted. π
Clean the current source tree
the command debuild clean is executed within the current Debian source archive to clean it. if a -r option is given to uupdate, it is passed on to debuild. π§Ό
Patching
the current source archive (.orig.tar.gz) is unpacked and the patch applied to the original sources. if this is successful, then the .orig directory is renamed to reflect the new version number and the current Debian source directory is copied to a directory with the new version number β otherwise, processing is aborted. the patch is then applied to the new copy of the Debian source directory. the file debian/rules is made executable and all of the .orig files created by patch are deleted. if there was a problem with the patching, a warning is issued and the program will eventually exit with non-zero exit status. π
Changelog update
a changelog entry with the new version number is generated with the text βNew upstream release.β.
when used on Ubuntu systems, dpkg-vendor detection is used to set the Debian revision to β0ubuntu1β. you may change debian/changelog manually afterwards. π
π¦ SEE ALSO π¦
the Debian Policy Manual π
β AUTHOR β
the original version of uupdate was written by Christoph Lameter <clameter@debian.org>. several changes and improvements have been made by Julian Gilbey <jdg@debian.org>. π«Ά absolute legends, both of them.
okay that's the whole thing bestie, go forth and upgrade π this was the Debian Utilities page for UUPDATE(1), served to you fresh from DEBIAN β mwah, stan, no notes πβ¨π
π¦ where this page comes from
- debian bookworm: devscripts 2.23.4+deb12u2 Β· GPL-2.0-or-later
- debian trixie: devscripts 2.25.15+deb13u1 Β· GPL-2.0-or-later
- epel 10: devscripts 2.25.5-1.el10_1 Β· GPL-2.0-or-later
- epel 9: devscripts 2.25.5-1.el9 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.19-2.fc43 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.33-1.fc43 Β· GPL-2.0-or-later
- fedora 44: devscripts 2.26.5-1.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- ubuntu jammy: devscripts 2.22.1ubuntu1 Β· GPL-2.0-or-later
- ubuntu jammy: devscripts 2.22.1ubuntu1.2 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7ubuntu0.2 Β· GPL-2.0-or-later
- ubuntu questing: devscripts 2.25.19ubuntu2
- ubuntu resolute: devscripts 2.26.7 Β· GPL-2.0-or-later
- ubuntu stonking: devscripts 2.26.11ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms