dpt-repack.sh(1)

πŸ’… dpt-repack.sh β€” the repackaging helper (aka the manual page for dpt-repack.sh(1), from the Debian Perl packaging Tools fam) πŸŽ€

okay bestie so like… this tool is deprecated 🌈. I'm telling you that up front because I love you and I want you to know what you're walking into. She still works, she's still cute, but the glow-up already happened elsewhere. iykyk.


✨ NAME ✨

dpt-repack.sh β€” repackaging helper, and yes she is deprecated πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 DESCRIPTION 🌸

so basically dpt repack.sh helps you create repackaged tarballs β€” the kind that are suitable for feeding straight into dpkg-source(1) 🫢. It's giving "tidy up the upstream mess before it enters your packaging world."

🚨 bestie, listen: this command is deprecated. The cool kids do this with the functionality provided by uscan(1) together with the Files-Excluded stanza in debian/copyright. That's the moment. That's the serve. πŸ‘‘

πŸ’– how the work goes down (three stages, no skips) πŸ’–

Work is commenced in three stages, and honestly? each one eats:

  1. dpt repack.sh unpacks the provided upstream tarball πŸ“¦
  2. debian/repack.local is sourced to remove unsuitable content 🧹
  3. dpt repack.sh packs the sources again, under a suitable file name in the form "package_ver.orig.tar.gz" (the suffix depends on the initial compression, bestie β€” so don't come for me if yours looks different) πŸŽ€

🧚 the sneaky little environment trick 🧚

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 😭. yes literally. she's over there rewriting your muscle memory. iconic behavior, honestly.


πŸ‘€ SEE ALSO πŸ‘€


  • 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 🌟


and that's the whole page, bestie!! πŸŽ‰ this came out of pkg-perl-tools 0.88, dated 2026-04-01 β€” go forth and repack responsibly, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from