---
name: "dpt-repack.sh"
section: "1"
platform: "linux"
package: "pkg-perl-tools"
version: "0.82"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dpt-repack.sh"
---

# dpt-repack.sh(1)

repackaging helper (deprecated)

## NAME

dpt-repack.sh - repackaging helper (deprecated)

## SYNOPSIS

**dpt repack.sh** --upstream-version *version* *downloaded-file*

## DESCRIPTION

**dpt repack.sh** helps creating repackaged tarballs, suitable for feeding into [**dpkg-source**(1)](/dpkg-source/1.md).  This command is deprecated in favor of the functionality provided by [**uscan**(1)](/uscan/1.md) in conjunction with the **Files-Excluded** stanza in *debian/copyright*.

Work is commenced in three stages:

- •

  **dpt repack.sh** unpacks the provided upstream tarball.

- •

  *debian/repack.local* is sourced to remove unsuitable content.

- •

  **dpt repack.sh** packs the sources again, under a suitable file name in the form `"package_ver.orig.tar.gz"` (suffix depending on initial compression).

**dpt repack.sh** invokes *debian/repack.local* in an environment where **rm** and **mv** are replaced with functions that reflect the operations in the *MANIFEST* file, if present.

## SEE ALSO

[**uscan**(1)](/uscan/1.md), [**mk-origtargz**(1)](/mk-origtargz/1.md)

## COPYRIGHT & LICENSE

Copyright 2009, Ryan Niebur ryan@debian.org

Copyright 2009-2023, gregor herrmann gregoa@debian.org

This program is free software and can be distributed under the same terms as Perl.
