Usage: dpkg-source [<option>...] <command>
Commands:
-x, --extract <filename>.dsc [<output-dir>]
Extract source package.
-b, --build <dir>
Build source package.
--print-format <dir>
Print the format to be used for the source package.
--before-build <dir>
Run the corresponding source package format hook.
--after-build <dir>
Run the corresponding source package format hook.
--commit [<dir> [<patch-name>]]
Store upstream changes in a new patch.
Build options:
-c<control-file>
Get control information from this file.
-l<changelog-file>
Get per-version changelog information from this file.
-F<changelog-format>
Force changelog format.
--format=<source-format>
Set the format to be used for the source package.
-T<substvars-file>
Read substitution variables from this file.
-V<name>=<value>
Set a substitution variable.
-D<field>=<value>
Override or add a .dsc field and value.
-U<field>
Remove a field.
-i, --diff-ignore[=<regex>]
Filter out files to ignore diffs of.
[default: (?:^|/).*~$|(?:^|/)\.#.*$|(?:^|/)\..*\.sw.$|(?:^|/),,.*(?:$|/.*$)|(?:^|/)(?:DEADJOE|\.arch-inventory|\.(?:bzr|cvs|hg|git|mtn-)ignore)$|(?:^|/)(?:CVS|RCS|\.deps|\{arch\}|\.arch-ids|\.svn|\.hg(?:tags|sigs)?|_darcs|\.git(?:attributes|modules|review)?|\.mailmap|\.shelf|_MTN|\.be|\.bzr(?:\.backup|tags)?)(?:$|/.*$)]
-I, --tar-ignore[=<pattern>]
Filter out files when building tarballs.
[default: -I*.a -I*.la -I*.o -I*.so -I.*.sw? -I*/*~ -I,,* -I.[#~]* -I.arch-ids -I.arch-inventory -I.be -I.bzr -I.bzr.backup -I.bzr.tags -I.bzrignore -I.cvsignore -I.deps -I.git -I.gitattributes -I.gitignore -I.gitmodules -I.gitreview -I.hg -I.hgignore -I.hgsigs -I.hgtags -I.mailmap -I.mtn-ignore -I.shelf -I.svn -ICVS -IDEADJOE -IRCS -I_MTN -I_darcs -I{arch}]
-Z, --compression=<compression>
Select compression to use (supported are: bzip2, gzip, lzma, xz).
[default: xz]
-z, --compression-level=<level>
Compression level to use (supported are: '1'-'9', 'best', 'fast').
[default: 6]
Extract options:
--no-copy
Do not copy original source tarballs.
--no-check
Do not check signature and checksums on extraction.
--no-overwrite-dir
Do not overwrite directory on extraction.
--no-vendor-certs
Do not use vendor specific certificate keyrings.
--signer-certs=<keyring>
Use a signer certificates keyring.
--require-valid-signature
Abort if the package does not have a valid signature.
--require-strong-checksums
Abort if the package contains no strong checksums.
--ignore-bad-version
Allow bad source package versions.
Build format 1.0 options:
-sa
Auto select original source.
-sk
Use packed original source (unpack and keep).
-sp
Use packed original source (unpack and remove).
-su
Use unpacked original source (pack and keep).
-sr
Use unpacked original source (pack and remove).
-ss
Trust packed and unpacked original sources are same.
-sn
There is no diff, do main tarfile only.
-sA, -sK, -sP, -sU, -sR
Like -sa, -sk, -sp, -su, -sr but may overwrite.
--abort-on-upstream-changes
Abort if generated diff has upstream files changes.
Extract format 1.0 options:
-sp
Leave original source packed in current directory.
-su
Do not copy original source to current directory.
-sn
Unpack original source tree too.
--skip-debianization
Do not apply debian diff to upstream sources.
General options:
--threads-max=<threads>
Use at most <threads> with compressor.
-q
Enable quiet mode, minimal output.
-?, --help
Show this help message.
--version
Show the version.
Source format specific build and extract options are available;
use --format with --help to see them.
Options (46)
| Option | Description | Source |
|---|---|---|
-b, --build dir | Build source package. | help |
--print-format dir | Print the format to be used for the source package. | help |
--before-build dir | Run the corresponding source package format hook. | help |
--after-build dir | Run the corresponding source package format hook. | help |
-c control-file | Get control information from this file. | help |
-l changelog-file | Get per-version changelog information from this file. | help |
-F changelog-format | Force changelog format. | help |
--format source-format | Use the given format for building the source package. | help + man |
-T substvars-file | Read substitution variables from this file. | help |
-V name>=<value | Set a substitution variable. | help |
-D field>=<value | Override or add a .dsc field and value. | help |
-U field | Remove a field. | help |
-i, --diff-ignore regex | Filter out files to ignore diffs of. | help |
-I, --tar-ignore pattern | Filter out files when building tarballs. | help |
-Z, --compression, -Zcompression compression | Specify the compression to use for created tarballs and diff files. | help + man |
-z, --compression-level, -zlevel level | Compression level to use (supported are: '1'-'9', 'best', 'fast'). | help + man |
--no-copy | Do not copy original tarballs near the extracted source package. | help + man |
--no-check | Do not check signatures and checksums before unpacking | help + man |
--no-overwrite-dir | Do not overwrite the extraction directory if it already exists. | help + man |
--no-vendor-certs | Do not use the vendor specific certificate keyrings. | help + man |
--signer-certs keyring | Use this keyring containing signer certificates during signature verification of source packages. | help + man |
--require-valid-signature | Refuse to unpack the source package if it doesn't contain an OpenPGP signature that can be verified either with the user supplied --signer-certs keyrings, or one of the vendor-specific keyrings,… | help + man |
--require-strong-checksums | Refuse to unpack the source package if it does not contain any strong checksums. | help + man |
--ignore-bad-version | Turns the bad source package version check into a non-fatal warning. | help + man |
-sa | Auto select original source. | help |
-sk | Use packed original source (unpack and keep). | help |
-sp | Use packed original source (unpack and remove). | help |
-su | Use unpacked original source (pack and keep). | help |
-sr | Use unpacked original source (pack and remove). | help |
-ss | Trust packed and unpacked original sources are same. | help |
-sn | There is no diff, do main tarfile only. | help |
-sA, -sK, -sP, -sU, -sR | Like -sa, -sk, -sp, -su, -sr but may overwrite. | help |
--abort-on-upstream-changes | Abort if generated diff has upstream files changes. | help |
--skip-debianization | Do not apply debian diff to upstream sources. | help |
--threads-max threads | Sets the maximum number of threads allowed for compressors that support multi-threaded operations. | help + man |
-q | Sets quiet mode to suppress warnings. | help + man |
-?, --help | Show this help message. | help |
--version | Show the version. | help |
-ccontrol-file | Specifies the main source control file to read information from. (in the manual page but not in --help) | man |
-lchangelog-file | Specifies the changelog file to read information from. (in the manual page but not in --help) | man |
-Fchangelog-format | Specifies the format of the changelog. (in the manual page but not in --help) | man |
-Vname value | Set an output substitution variable. (in the manual page but not in --help) | man |
-Tsubstvars-file | Read substitution variables in substvars-file; (in the manual page but not in --help) | man |
-Dfield value | Override or add an output control file field. (in the manual page but not in --help) | man |
-Ufield | Remove an output control file field. (in the manual page but not in --help) | man |
--extend-diff-ignore regex | The perl regular expression specified will extend the default value used by --diff-ignore and its current value, if set. (in the manual page but not in --help) | man |