8.3. `pkg-deinstall`
Prev | Chapter 8. The `pkg-`*`` Files | Next

## 8.3. `pkg-deinstall`

This script executes when a package is removed.

This script will be run twice by pkg_delete(1). The first time as `${SH} pkg-deinstall ${PKGNAME} DEINSTALL` and the second time as `${SH} pkg-deinstall ${PKGNAME} POST-DEINSTALL`.

Prev | Up | Next
8.2. `pkg-install` | Home | 8.4. `pkg-req`

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.