From c53350a4854e6d348955bdc9a5ca27b3a7a44756 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Tue, 31 Mar 2020 04:00:43 +0000 Subject: Tue Mar 31 04:00:43 UTC 2020 a/pkgtools-15.0-noarch-31.txz: Rebuilt. removepkg: support an uninstall script. See removepkg(8). d/meson-0.54.0-x86_64-1.txz: Upgraded. --- source/a/pkgtools/manpages/removepkg.8 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/a/pkgtools/manpages/removepkg.8') diff --git a/source/a/pkgtools/manpages/removepkg.8 b/source/a/pkgtools/manpages/removepkg.8 index f92ed8c2c..58a88ce60 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 -- cgit v1.2.3-65-gdbad