
These scripts (preinst, postinst, prerm, postrm, etc) are not created by default, but make the process flexible enough to meet many needs. There are a number of scripts which, if created in the debian folder will happen at the designated step in the process. You can do this with some command line-fu to make your life easier if your package was larger than mine. I couldn’t get this to work with paths or wildcards, so I had to specify every file to be moved manually.

Relative/path/to/file /absolute/destination/path The following is a (contrived) example of the syntax:
#DEBIAN 9 FIND FILES BY DATE INSTALL#
Perhaps the hardest thing to search for information for was the Install file, which physically copies files from your debian directory to a location on disk. You’ll almost certainly need the depends, category however, so give those a read and apply them as appropriate. In general, you should complete all of the non-functional metadata in the control field and use the interrelationship fields only as needed. While I won’t go into them in detail, their descriptions can be found here. This file consists of a number of fields which each have a clearly defined purpose. The control file holds the package metadata which will eventually tell apt-get and other tools which package you are building, its dependencies, version, description – basically everything it can know. While I don’t expect this to be complete, I do hope to head off many of the initial questions that I had about how things were roughly built.
#DEBIAN 9 FIND FILES BY DATE TRIAL#
This resulted in a lot of trial and error searching on my part, where I would realize I needed to do something my package wasn’t at the moment, search for a solution to that problem and repeat ad nauseam. While creating a Debian is fairly simple, I had a difficult time finding a decent step-by-step process for the things that need to be done and considered if your workflow is outside of the norm (build a simple package from source using a Makefile). If you don’t have some of these you should be able to get them via apt-get on your local package repository. dpkg – The base means Ubuntu installs packages.

