diff options
Diffstat (limited to 'source/a/pkgtools/manpages/removepkg.8')
-rw-r--r-- | source/a/pkgtools/manpages/removepkg.8 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/a/pkgtools/manpages/removepkg.8 b/source/a/pkgtools/manpages/removepkg.8 index f92ed8c2..58a88ce6 100644 --- a/source/a/pkgtools/manpages/removepkg.8 +++ b/source/a/pkgtools/manpages/removepkg.8 @@ -70,9 +70,17 @@ you do this (and maybe pipe the output to ) before removing packages to make sure you've backed up anything that might be important. .LP -When removing a package, it's original file index will be moved from +When removing a package, its original file index will be moved from /var/lib/pkgtools/packages to /var/log/pkgtools/removed_packages. Likewise, its installation script will be moved from /var/lib/pkgtools/scripts to /var/log/pkgtools/removed_scripts. +.LP +.B removepkg +supports /bin/sh compatible uninstall scripts. +If the package shipped with an uninstall script, it will be run after the package +is removed. If present, the uninstall script resides in the /var/lib/pkgtools/douninst.sh/ +directory and has the same full name as the package (without the extension). For example, +a package named foo-1.0-noarch-1.txz might contain an uninstall script named: +/var/lib/pkgtools/douninst.sh/foo-1.0-noarch-1 .SH OPTIONS .TP .B \--copy packagename |