I'm getting started preparing an installation script for a software package onto an Ubuntu server. I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand (a database, web server, etc.).
Can you recommend any tutorials/resources to help a newbie developer get started writing deb packages?
Update: Canonical has a thorough Packaging Guide which explains the process very well.
The current Debian package management system which can utilize all these resources is Advanced Packaging Tool (APT).
Creating a Package Repository A package repository is a directory with the DEBs of your packages and a few additional special files in it; any Debian user can add your package repository to his sources. list file, and then your packages will be listed to him together with all the others available in Debian.
deb file in /var/cache/apt/archive/ .
The Apt (Advanced Package Tool) package management system is a set of tools to download, install, remove, upgrade, configure and manage Debian packages, and therefore all software installed on a Debian system.
If you are entirely new to building Debian packages, I suggest that you look at the Debian New Maintainers' Guide and use the Debian Developer's Reference as reference. As a starting point, dh_make
(from the dh-make
package) should give you a good template to work with.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With