Cannot remove entries from /var/sadm/install/productregistry
Solaris 10
I cannot get a (corrupt) JES completely off my system to do a fresh install (installer seems to look at productregistry and thinks Directory Server and Admin Console are already installed, even though I pkgrm'd everything).
Here抯 what I did:
- Tried JES uninstallers. Total bust. They just plain don't work (gads of missing shared lib dependencies, etc. I wasted an hour fiddling with LD_LIBRARY_PATH and finally gave up)
- Started identifying JES packages via pkgchk 杔 杙 /path/to/JES/file. That quickly became tedious, and I abandoned that strategy.
- Identified JES packages by iterating through /var/sadm/install/contents and grep抜ng for the JES dirs. I pkgrm抎 all 70 some-odd JES packages
- Ran JES install
The last part, Ran JES install, introduced me to a Solaris feature I抎 previously never heard of, and left me wishing I never had :-( The 揚roduct Registry.? Ugh. O.K. So JES looks at this product registry thing and thinks it抯 still installed. I ran some prodreg unregister commands and removed the JES node from the product tree. That went OK. Now I抦 stuck with a few lingering Directory and Admin Server entries that I cannot remove. Hoping someone at can help. When I try to unregister, I just get 揅ould not unregister the component.?br>
I tried renaming /var/sadm/install/productregistry but that didn抰 help (prodreg then sticks everything in contents under "Uncataegorized Software")
Any ideas?
Example output from prodreg:
# prodreg browse -m "Unclassified Software" | grep 'Sun Java'
40 .SUNWasvc1 Sun Java(TM) System Server Console
[snip]
# prodreg unregister -fr -u "SUNWasvc" -i 1
Could not unregister the component.

