Possible Duplicate:
Simplest Debian Packaging Guide?

I have a group of BASH scripts, XML files, etc. The scripts require that some programs already be installed. How do I create a *.deb on Ubuntu that will make sure that dependencies are satisfied and put my scripts and files where they need to be?

marked as duplicate by Jorge Castro, devav2, Ringtail, user76204, Mitch Oct 14 '12 at 17:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You should probably give an example file structure and desired target directory. – RobotHumans Oct 14 '12 at 12:18
  • I am not sure yet where I would like to place the scripts. As for file structure, I have scripts in ./ and the XML files (AIML files to be more specific) are in ./aiml. I also have ./logs and ./temp. Does this answer your question @AbrahamVanHelpsing? – user97575 Oct 14 '12 at 12:23
  • What do you want to add as dependencies... – RobotHumans Oct 14 '12 at 13:09

Creating .deb-Packages With Checkinstall


Checkinstall is a nice tool to create simple .deb-packages that you can use in your local network (e.g. if you have to install the same piece of software on multiple computers running Debian). It lets you compile and install software from the sources like before, but with the difference that you end up with a simple Debian package which also means that you can easily uninstall the software you just compiled by running dpkg -r!


Starting with something like this:

:~/testing/yourapp/yourapp$ find ./

If you have binary files (icons and other) you can hide them in the ./debian folder.

For now let's add a version number to yourapp and build the orig.tar.gz.

cd ..  
mv yourapp yourapp-0.1  
tar czfv yourapp_0.1.orig.tar.gz yourapp-0.1/  
cd yourapp-0.1  
mkdir debian
dch --create -v 0.1-1 --package yourapp  

Finish your edits and save the changelog.


Waits for OP response...

Debian packaging guide
Another question