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
controlfile:
Use a text editor to modify thecontrolfile in thedebiandirectory:$ vim debian/controlExample content for the
controlfile:Source: pony Maintainer: Sascha Dewald <sdewald (at) googlemail.com> Architecture: any Package: pony -
Copy rules from
dh_make:
Copy the Debian rules file to yourdebian/rules:$ cp /usr/share/debhelper/dh_make/debians/rules.dh7 debian/rules -
Edit the
rulesfile:
Modify the rules file:$ vim debian/rules -
Create source directory:
Make asourcedirectory in thedebianfolder:$ mkdir debian/source -
Specify source format:
Edit thedebian/source/formatfile:$ vim debian/source/formatAdd the following line:
3.0 -
Check the package with Lintian:
Run the Lintian tool to check for errors in your package:$ lintian pony_1.0_amd64.changes -
Check for more information:
Use the-Ioption for more detailed output:$ lintian -I pony_1.0_amd64.changes
Comments
Post a Comment