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

Suppose I have a program which I can install via cabal, for example

cabal install pandoc

Is it possible to use checkinstall to make a .deb package out of this and install it in a second step via dpkg?

share|improve this question

There seems to be a program called "cabal-debian" that converts a cabal file into a debian package (ala checkinstall) and allows you to install it via apt/dpkg. It's provided by the package "haskell-debian-utils". The manpage & description for it can be found at

Looks like running "cabal-debian --debianize --ghc", then "dpkg -i" whatever debs come out will achieve what you want.

share|improve this answer
Thanks. How do I use this in my example? How to download the cabal file (for pandoc)? – student Aug 2 '11 at 18:07

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.