dscextract β extract a single file from a Debian source package
| Use Case | Command | Description |
|---|---|---|
| π¦ Extract a file from a .dsc | dscextract [options] dscfile file |
Extract a file relative to the firstβlevel directory |
| β‘ Fast mode (format 1.0) | dscextract -f dscfile file |
Skip fallback to .orig.tar.gz if file not in .diff.gz |
π Extract a specific file (e.g. debian/watch) |
dscextract dds_2.1.1+ddd105-2.dsc debian/watch |
Useful for files in the debian/ subdirectory |
dscextract [options] dscfile file
π dscextract reads a single file from a Debian source package. The idea is to only look into .diff.gz files (source format 1.0) or .debian.tar.gz/bz2 files (source format 3.0) where possible, hence avoiding to unpack large tarballs. It is most useful for files in the debian/ subdirectory. file is relative to the first level directory contained in the package, i.e. with the first component stripped.
-f π βFastβ mode. For source format 1.0, avoid to fall back scanning the .orig.tar.gz file if file was not found in the .diff.gz. (For 3.0 packages, it is assumed that debian/* are exactly the contents of debian.tar.gz/bz2.)dscextract dds_2.1.1+ddd105-2.dsc debian/watch || test $? = 1
dscextract was written by Christoph Berg <myon AT debian.org>.
DEBIAN Debian Utilities DSCEXTRACT(1)
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 20:56 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)