DSCEXTRACT(1)
π DSCEXTRACT β the girl who pulls one file out of a Debian source package π
okay bestie, so this is a page from the General Commands Manual and it's literally called dscextract. no cap.
β¨ NAME β¨
dscextract β extract a single file from a Debian source package π
π¦ SYNOPSIS π¦
dscextract [options] dscfile file
πΈ DESCRIPTION πΈ
so the whole vibe here is: dscextract reads one single file out of a Debian source package. that's it. that's the job. π
the iconic part? it only looks into .diff.gz files (that's source format 1.0) or .debian.tar.gz/.bz2 files (that's source format 3.0) where it can, which means it's avoiding unpacking big tarballs. we love an efficient queen. π
it's most useful for files chilling in the debian/ subdirectory, iykyk.
file is relative to the first level directory contained in the package β meaning the first component is stripped. so like, no leading folder name, bestie. π
β¨ OPTIONS β¨
-fβ "Fast" mode β‘ for source format 1.0, it avoids falling back to scanning the.orig.tar.gzfile iffilewasn't found in the.diff.gz. (and for 3.0 packages, it just assumes thatdebian/*are exactly the contents ofdebian.tar.gz/.bz2.) not me skipping the backup plan, it's giving speed πβοΈπ¨
π EXIT STATUS π
0βfilewas extracted. slay, it worked π1βfilewas not found in the source package. it's giving ghosted π»2β an error occurred, likedscfilewas not found. bestie something went wrong π
π EXAMPLE π
dscextract dds_2.1.1+ddd105-2.dsc debian/watch || test $? = 1
look at her go π«Ά
π AUTHOR π
dscextract was written by Christoph Berg <myon@debian.org>. ty for your service, king π«‘π
lowkey remember: this comes from the Debian Utilities crew, and the page you're reading is the DSCEXTRACT(1) manual from the DEBIAN source/version, dated Debian Utilities era β that's the footer energy, bestie. mwah, bye πβ¨π
π¦ 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