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.

[1747 byte] By [DTF] at [2007-11-26 6:26:00]
# 1

Not sure if you already tried this but I what I did to workaround this problem is:

1. Rename /var/sadm/install/productregistry file

2. pkgrm all of the relevant JES packages (you can get list of JES packages from your install media)

3. Run JES installer again.

At this point, If you really care about content of productregistry file (which I don't), you will have to reconcile content of newly created productregistry file with the one you renamed in step (1).

olegkst at 2007-7-6 14:17:30 > top of Java-index,Application & Integration Servers,Application Servers...