Packages can use scripts as part of their installation and removal process. The included scripts are defined as follows:
- preinst: This executes before the package is unpacked. Services should be stopped during the execution of preinst to permit installation or upgrading.
- postinst: This typically completes any required configuration of the package after it has been unpacked. Many postinst scripts then execute any command necessary to start or restart a service once a new package has been installed or upgraded.
- prerm: This usually stops any daemon that is associated with a package. It is executed before the removal of files associated with the package.
- postrm: This commonly modifies links or other files ...