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 thecontrol
file in thedebian
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 yourdebian/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 asource
directory in thedebian
folder:$ mkdir debian/source
-
Specify source format:
Edit thedebian/source/format
file:$ vim debian/source/format
Add 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-I
option for more detailed output:$ lintian -I pony_1.0_amd64.changes
Comments
Post a Comment