Posts

Showing posts from May, 2012

How to Create Debian Packages

To create Debian packages, follow these steps: Create a Debian directory : $ mkdir debian Initialize the changelog : Create a changelog for your package by running the following commands: $ dch --create $ dch --append $ dch -v1.2 $ dch -r Edit the control file : Use a text editor to modify the control file in the debian directory: $ vim debian/control Example content for the control file: Source: pony Maintainer: Sascha Dewald <sdewald (at) googlemail.com> Architecture: any Package: pony Copy rules from dh_make : Copy the Debian rules file to your debian/rules : $ cp /usr/share/debhelper/dh_make/debians/rules.dh7 debian/rules Edit the rules file : Modify the rules file: $ vim debian/rules Create source directory : Make a source directory in the debian folder: $ mkdir debian/source Specify source format : Edit the debian/source/format file: $ vim debian/source/format Add the following line: 3.0 Check the package with Lintian : Run...