9. Maintainer script flowcharts
The flowcharts [1] included in this appendix use the following conventions:
maintainer scripts and their arguments are within boxes;
actions carried out external to the scripts are in italics; and
the
dpkg
status of the package at the end of the run are in bold type.
![Installing a package that was not previously installed](_images/debian-policy-install.png)
Installing a package that was not previously installed
![Installing a package that was previously removed, but not purged](_images/debian-policy-install-conffiles.png)
Installing a package that was previously removed, but not purged
![Upgrading a package](_images/debian-policy-upgrade.png)
Upgrading a package
![Removing a package](_images/debian-policy-remove.png)
Removing a package
![Purging a package previously removed](_images/debian-policy-purge.png)
Purging a package previously removed
![Removing and purging a package](_images/debian-policy-remove-purge.png)
Removing and purging a package