gbp-export-orig(1)
π¦ gbp-export-orig(1) β the git-buildpackage manual, but make it cute π¦
okay bestie, sit down, hydrate, because we're talking about gbp export-orig from the git-buildpackage manual and honestly? it's a whole vibe. it's giving "I just want my upstream tarballs without doing a full build" and honestly, same.
β¨ NAME β¨
gbp-export-orig β recreate upstream tarballs from a Git repository π
no cap, that's literally the whole job. tarball go brrr. π
β¨ SYNOPSIS β¨
gbp export-orig [--verbose] [--color=[auto|on|off]] [--color-scheme=
COLOR_SCHEME] [--upstream-branch= BRANCH_NAME]
[--[no-]submodules] [--upstream-tag= tag-format]
[--upstream-tree= [TAG|BRANCH|TREEISH]] [--tarball-dir=
DIRECTORY] [--force-create] [--compression= TYPE]
[--compression-level= LEVEL] [--component= component]...
[--[no-]pristine-tar] [--[no-]pristine-tar-commit]
[--upstream-signatures=[auto|on|off]]
look at all those flags, she's got range π
β¨ DESCRIPTION β¨
so gbp export-orig is the girl whose entire personality is exporting upstream tarballs out of a Git repository. πΈ
normally those upstream tarballs get made by gbp buildpackage whenever they're needed β like, it handles it, it's fine, she's got it. but if you don't want to actually perform a build (mood, honestly, sometimes you just don't) then this command is your bestie. π«Ά
β¨ OPTIONS β¨
--verboseβ verbose execution. she tells you everything. π--color=[auto|on|off]β whether to use colored output. pick your fighter. π--color-scheme=COLOR_SCHEMEβ the colors to use in output (when color is enabled, obviously, no point painting an invisible canvas π). the format forCOLOR_SCHEMEis'<debug>:<info>:<warning>:<error>'. numerical values and color names are both accepted, and empty fields imply the default color. for example--color-scheme='cyan:34::'would show debug messages in cyan, info messages in blue, and other messages in default β i.e. warning and error messages in red. iconic, tbh.--upstream-branch=BRANCH_NAMEβ branch to build the orig tarball from if--upstream-treeis set toBRANCH. default isupstream. π--[no-]submodulesβ include git submodules in the orig tarball. let the submodules in, they're part of the family now. π--upstream-tag=TAG-FORMATβ use this tag format when looking for tags of upstream versions. default isupstream/%(version)s. periodt.--force-createβ force creation of an orig tarball, which means overwriting a pre-existing one if present. β οΈ bestie she will simply replace it, so know what you're doing.--upstream-tree=[BRANCH|TAG|TREEISH]β how to find the upstream sources used to generate the tarball.TAG(the default) looks at a tag corresponding to the version in the changelog.BRANCHlooks at the upstream branch given via the--upstream-branchoption.
other values are interpreted as treeishs. π§
this doesn't have any effect if --pristine-tar is being used. π
--tarball-dir=DIRECTORYβ search for original tarballs inDIRECTORYinstead of generating them.DIRECTORYcan contain a version format substitution pattern, eg:foo-%(version)s. she'll go looking instead of making β¨--compression=TYPEβ specifies the upstream tarball compression type. this will be used to locate and build the upstream tarball if necessary. the default isauto, which derives the compression type from thepristine-tarbranch if available and falls back togzipotherwise. other options aregzip,bzip2,lzmaandxz. choose your crunch π--compression-level=LEVELβ specifies the upstream tarball compression level if an upstream tarball needs to be built. squeeze accordingly.--component=COMPONENTβ when generating tarballs, create an additional original tarball of directoryCOMPONENTin the source tree. using additional original tarballs is a feature of the3.0 (quilt)source format. see thedpkg-sourcemanpage for details. note that the--pristine-tar-commitoption is currently incompatible with this option. π
this is considered an experimental feature and might change incompatibly. she's still figuring herself out, be nice. π
--pristine-tarβ usepristine-tarwhen generating the upstream tarball if it doesn't exist. π₯--pristine-tar-commitβ commit thepristine-tardelta to thepristine-tarbranch if a new tarball was generated and thepristine-tardata isn't already there. she commits, she's responsible π--upstream-signatures=[auto|on|off]β whether to export with upstream signatures. β
β¨ EXAMPLES β¨
generate an upstream tarball of the version currently referenced in the changelog using pristine-tar:
gbp export-orig --pristine-tar
same as above but generate and additional tarball for directory foo.
gbp export-orig --pristine-tar --component=foo
slay. copy, paste, go off. π
β¨ CONFIGURATION FILES β¨
several gbp.conf files are parsed to set defaults for the above command-line arguments. see the gbp.conf(5) manpage for details. your defaults are pre-loaded, she remembers everything about you π₯°
β¨ SEE ALSO β¨
gbp-buildpackage(1), gbp-import-orig(1), gbp-pristine-tar(1), gbp.conf(5), debuild(1), git(1), pristine-tar(1), The Git-Buildpackage Manual β¨file:///usr/share/doc/git-buildpackage/manual-html/index.htmlβ©
go read the whole extended universe, iykyk πβ¨
β¨ AUTHOR β¨
Guido GΓΌnther <agx@sigxcpu.org> β the legend, the moment, the main character π
okayyy and that's the whole page bestie!! this was the git-buildpackage Manual version, dated 26 May 2026, and the page is gbp-export-orig(1). π no cap, you're gonna export the prettiest tarballs. go be great. π¦π
π
π¦ where this page comes from
- ubuntu stonking: git-buildpackage 0.9.43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms