# DSCEXTRACT - extract a single file from a Debian source package - man(1) - [phpMan]

[_DSCEXTRACT_(1)](https://www.chedong.com/phpMan.php/man/DSCEXTRACT/1/markdown)                          General Commands Manual                         [_DSCEXTRACT_(1)](https://www.chedong.com/phpMan.php/man/DSCEXTRACT/1/markdown)

## NAME
       dscextract - extract a single file from a Debian source package

## SYNOPSIS
       **dscextract **[_options_] _dscfile_ _file_

## DESCRIPTION
       **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 pos‐
       sible, 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.

## OPTIONS
### -f     
              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_.)

## EXIT STATUS
       0      _file_ was extracted.

       1      _file_ was not found in the source package.

       2      An error occurred, like _dscfile_ was not found.

## EXAMPLE
       dscextract dds_2.1.1+ddd105-2.dsc debian/watch || test $? = 1

## AUTHOR
       **dscextract **was written by Christoph Berg <<myon@debian.org>>.

DEBIAN                                    Debian Utilities                             [_DSCEXTRACT_(1)](https://www.chedong.com/phpMan.php/man/DSCEXTRACT/1/markdown)
