One of my favorite things about Debian is its awesome package management system. Apt is one of the reasons I have used Debian for servers for so many years and eased my initial transition to Ubuntu (which as most people know was initially a Debian fork). Apt is a great tool as long as you aren’t building packages from source (and not making debs out of them). I have packaged a whole bunch of debs, but sometimes it just isn’t necessary. So if you haven’t used equivs, then you need to check it out.
Essentially it allows you to create dummy debs to provide packages that you installed from source (circumvent dependency checking). It can get dirty when time comes to do dist-upgrades, but it has its usefulness. For example, I wanted to install altermime and I had installed the latest Postfix from source and altermime requires an MTA to be installed otherwise it would install exim (amongst other packages). So I built a dummy packages doing the following:
# equivs-control postfix
That will create a file named postfix in the current directory. Make the file look similar to this:
Maintainer: Eric Lubow
Description: Dummy Postfix package
Then go ahead and build your dummy package:
dpkg-deb: building package `postfix-dummy' in `../postfix-dummy_2.7.0_all.deb'.
The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
Then I just installed the postfix-dummy package with:
And everything worked beautifully. I installed altermime with no problem and we were off to the races.