[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ next ]
This manual documents the process of making a Debian package. It is assumed that you have at least familiarized yourself with Debian Policy Manual and Debian Packaging Manual. You also need them at your disposal, as they are often referenced here.
The following packages need to be present on your system in order to build a debian package.
From the devel section:
binutilsThe programs in this package are used to assemble and link object files--the stuff programs are made of.
gccThis is the GNU C compiler. Most Linux programs are written in the C programming language.
cppThis is the C preprocessor.
libc5-devThese are the C libraries and header files gcc needs to link with to create object files.
makeTypically creating a program will take several steps. Rather than having to type out the same commands over and over again, you can use the make program to automate the process.
dpkg-devThis package contains the tools needed to create Debian archives. It also contains the Debian Programmers and Policy manuals.
debmake (optional)This is a higher level set of tools for creating Debian packages. It makes the whole process tremendously easier.
From the admin section:
sudo (optional)Sudo allows a user to become root temporarily. (In a way controlled by the system administrator of course) You need root access during the package building process. If you do have root access you don't really need this package but you might want it any way because for security reasons you should do only the most essential actvities while logged in as root.
cpioThis is an archiver like tar or zip. Dpkg-dev needs it.
From the misc section:
fileThis handy program can determine what type a file is. Dpkg-dev needs it.
patchPatch will take a file containing a difference listing produced by the diff program and apply it to an original fan, producing a patched version.
helloThis is an example package for debian developers. I will often refer to it in this document.
Also you need the encryption package pgp to digitally "sign" your package. This is especially important if you want to distribute your package to other people. However due to a rather wacky U.S. law, you cannot simply download this from your nearest Debian ftp site. The ftp site will however have a file called README.non-us in its root directory which will tell you how to get a copy of pgp.
[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ next ]
Debian Programmers' Manual
2 March 2008igor@debian.org