Solaris 10 pkgrm fails to remove package completely
807559Oct 18 2004 — edited Nov 9 2004I am a member of a team developing a package for Solaris. It installs happily on Solaris 8 and 9. It also installs on 10, but can't be fully uninstalled from 10.
When pkgrm is run, the files belonging to the package are correctly uninstalled, and the operation appears to complete without errors. However, the package still shows up in pkginfo -l as "STATUS: completely installed", although some of the other package parameters are no longer shown when it's in this state (no values are shown for PSTAMP, INSTDATE or FILES).
I tried trussing pkginfo, and it does indeed find some information about the package in install.db - are there any tools to check the integrity of that database, and to fix errors?
Can anyone suggest what might be happening? Either it's a problem with the package itself, or a bug in pkgrm. Any ideas how I can check my package for errors that might cause this behaviour? I tried disabling the package's preremove and postremove scripts (edited them to do an immediate "exit 0"), but that made no difference.