Software Development with Linux

Building source and binary deb from dsc orig tar gz and debian tar gz files

SUN, 01 AUG 2010

This post is more a note to myself since I don't have to search it again when I'll need to do this. I'm guessing that it may be helpful to others too.

Here is how to create both .deb packages (source and binary) from the .dsc, .orig.tar.gz, and .debian.tar.gz files.

  1. Create a directory to work from

    • mkdir newpackage && cd newpackage

  2. Download the .dsc, .orig.tar.gz, and .debian.tar.gz files for the software you needed.

  3. Create the source directory

    • dpkg-source -x <packagename_version>.dsc

  4. Get into the package source directory

    • cd <packagename-version>

  5. Build both source and binary .deb

    • dpkg-buildpackage -rfakeroot

  6. Verify the binary package's content

    • dpkg --contents ../<packagename_version_platform>.deb