Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few binary files: foo,, and foo.lnk. I want to make a deb that will extract foo to /usr/share/foo/foo, bar to that same directory, and foo.lnk to /usr/share/applications. I dont want to include any source and there are a few dependencies that I need to make sure are installed.

I've found some resources such as and . The problem is that they are guides meant to include the source. Furthermore, I really dont understand how I specify where to extract certain files to.

share|improve this question

I found a relativly simple way to do it, all thats missing from that are how to run the pre-install and post-install scripts. (And if theres a way to add an uninstall script).

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Braiam Dec 26 '13 at 2:20

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.