Funky-Penguin: The Debian Sandwich: Part IIOct 04, 2000, 19:24 (0 Talkback[s])
[ Thanks to Rob for this link. ]
"Before we delve into the mysteries of dpkg which this article is mostly concerned with let me lead you through the reasoning behind The Debian Sandwich. This metaphor relates to the fact that in the Debian package system there are three layers, your highest level (which is the top slice of bread) is your favourite apt front end dselect/gnome-apt/kapt ( does this exist or am I imaging it?), the next layer in the sandwich is apt itself, this is the filling (Bacon, Lettuce and Tomato for me :) ), the front end programs control apt. You can of course run apt yourself and many people do (including me!), apt is itself a wrapper for the lowest layer, dpkg, which is the bottom layer in the sandwich . Dpkg is a complex beast of which we are only going to scratch the surface of, it is unlikely that you will need to use dpkg much, it is mainly used to build new packages and those from source through its variants dpkg-deb, dpkg-buildpackage, dpkg-source (there are lots, typing dpkg and then using the auto complete feature of your shell (if it has one) will reveal them)."
"We will just cover the basic and most useful features, of dpkg. If you want more in depth knowledge the man page provides an excellent source of information. I strongly recommend that you use apt as a wrapper for dpkg wherever possible. The only times you will not be able to use apt is if you have a stand alone deb file that you wish to install or if you want to remove a specific package without affecting dependencies etc through the use of --force-thing."