(debian-policy.info)dpkg-source - packs and unpacks Debian source packages


Next: dpkg-buildpackage - overall package-building control script Up: Tools for processing source packages
Enter node , (file) or (file)node

15.1.1 ‘dpkg-source’ - packs and unpacks Debian source packages
---------------------------------------------------------------

This program is frequently used by hand, and is also called from
package-independent automated building scripts such as
‘dpkg-buildpackage’.

To unpack a package it is typically invoked with

     dpkg-source -x .../path/to/filename.dsc

with the ‘filename.tar.gz’ and ‘filename.diff.gz’ (if applicable) in the
same directory.  It unpacks into ‘package-version’, and if applicable
‘package-version.orig’, in the current directory.

To create a packed source archive it is typically invoked:

     dpkg-source -b package-version

This will create the ‘.dsc’, ‘.tar.gz’ and ‘.diff.gz’ (if appropriate)
in the current directory.  ‘dpkg-source’ does not clean the source tree
first - this must be done separately if it is required.

See also Note: Source packages as archives.


automatically generated by info2www version 1.2.2.9