Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
1  
Which language is the software you'd like to package? –  Umang Aug 6 '10 at 6:07

6 Answers 6

up vote 33 down vote accepted

This is a good HOWTO for creating a basic .deb file. It is suitable for creating .debs 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 at 0:15

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

share|improve this answer
3  
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

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

Here's a nice tutorial from Ubuntuforums.

share|improve this answer

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.

http://developer.ubuntu.com/2012/02/how-to-prepare-a-compiled-application-for-ubuntu-software-center/

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

http://blog.noizeramp.com/2005/08/31/packaging-java-applications-for-ubuntu-and-other-debians/.

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
1  
"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

 
discard

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.