[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ next ]

Debian New Maintainers' Guide
Chapter 6 - Building the package


We should now be ready to build the package.


6.1 Complete rebuild

Enter the program's main directory and then issue this command:

       dpkg-buildpackage -rfakeroot

This will do everything for you. It will:

The only input that will be required of you is your GPG key secret pass phrase, twice.

After all this is done, you will see the following files in the directory above (~/debian/):

The long strings of numbers in the .dsc and .changes files are MD5 checksums for the files mentioned. A person downloading your files can test them with md5sum(1) and if the numbers don't match, they'll know the file is corrupt or has been tampered with.


6.2 Quick rebuild

With a large package, you may not want to rebuild from scratch every time while you tune a detail in debian/rules. For testing purposes, you can make a .deb file without rebuilding the upstream sources like this:

       fakeroot debian/rules binary

Once you are finished with your tuning, remember to rebuild following the above, proper procedure. You may not be able to upload correctly if you try to upload .deb files built this way.


[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ next ]

Debian New Maintainers' Guide

version 1.2, 6 April 2002.

Josip Rodin joy-mg@debian.org