This semi-automates the creation of Debian packages. It should be compatible from 10.7 - 10.10. Collect all of your files on the desktop in a folder named "package", correctly formatted into the Debian format including control file. For more information on dpkg formatting see here.

It uses Homebrew as its backbone, and dpkg is installed & updated via Homebrew. This is largely because Homebrew is a great way to sandbox the formulas in a non-destructive, safe way without any interference with the system.

Obviously, this makes installing Homebrew & updating your $PATH a prerequisite to using this workflow.

Commands: