Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I went to the Ubuntu wiki but got confused,there were too many ways. Please tell me an easy guide to Debian packaging.

share|improve this question
Do you want to create packages for your own use, on a specific computer, or for others to use? –  andol Aug 6 '10 at 5:49
Which language is the software you'd like to package? –  Umang Aug 6 '10 at 6:07

6 Answers 6

up vote 48 down vote accepted

This is a good HOWTO for creating a basic .deb file. It is suitable for creating .deb files for personal use but not stringent enough if you want to the package to be included in Debian / Ubuntu - for that you should read the Debian New Maintainer's Guide and/or the Ubuntu Packaging Guide (which I believe you've already tried).

A good tool for checking your .deb file for compliance is lintian (installable from the repositories).

There were two sessions here in the Ask Ubuntu chatrooms.

The Basics of Packaging on Ubuntu (Packaging: Part 1)

Ubuntu Packaging for Launchpad PPAs (Packaging: Part 2)

share|improve this answer

What parts are you having trouble with? Although complicated, the guide seemed quite clear when I was following it.

Quick Summary:

  • Extract source .tar.gz
  • Run dh_make
  • Edit debian files
  • Run debuild
share|improve this answer
What confused me is, is this process the same no matter the source language or directory structure? –  Seth Sep 26 '14 at 0:15

You can even use dpkg-deb for creating simple packages.

Here's a nice tutorial from Ubuntuforums.

share|improve this answer

The very easiest way to package something is to use checkinstall.

share|improve this answer
checkinstall provides a quick way to build debin binary package(.deb ) from a source install method. However it does not provide a proper debian package (built from a debian source package). –  João Pinto Aug 6 '10 at 20:14
OH man.. I had to use that BEFORE compiling.. that's like hours of compiling. –  ppumkin Feb 20 at 23:57

We posted the simplest how-to example for packaging here, things can get much more complicated with an upstream or opensource package but if it is your own simple app its very simple.

Here we package the text game dungeon with an icon and install into /opt

share|improve this answer

No, the simplest and clearest packaging guide in this world is

Few days ago, for my first application, I created DEB package by following this tutorial. Very clear and my app packaged succesfully. Yes, at least it is simplest for me.

You can compare it with Debian Packaging Guide.

share|improve this answer
"Simple" does not mean "complete". There's a lot of policies a basic .deb packaging tutorial will not cover for different types of programs, and therefore packaging is not as easy as just a "simple tutorial". –  Thomas W. Jul 7 '13 at 2:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.