Thu Jan 29 14:09:26 CET 2009

.tar to .deb

How to convert slackware .tgz style files to .deb?

Suppose: I know what I'm doing, I just want to use the package
management properties to provide "install" and "uninstall".

The answer is to use alien.

  1.  Prepare a root fs tree (as normal user) with correct
      permissions.  I.e. under "dist", create

  2.  cd $(TOPDIR) && fakeroot tar cf ../package.tgz *

  3.  fakeroot alien package.tgz

This generates a .deb file that can be used to install/uninstall the
files.  The drawback is that there are no pre/post scripts and there
is no dependency management.