How to cleanly uninstall Portal7 on Solarisx86.
Hi,
I am new to JES and portal. I tried installing portal install just to monkey with it. I got a alot of errors about configuration. I wanted to start cleanly again so I uninstall using the uninstaller. However, it does not seem to remove enverything. I still see the instace of webserver running. So I would appreciate if anyone can tell me steps to cleanly uninstall everything I installed with the JES installer.
Thanks,
BC
[452 byte] By [
bc2002] at [2007-11-26 9:26:53]

# 1
Hi,
I had same problem short time ago, I solved this by making brute-force script to remove whole JES :o)
So adapt next script form your environment:
Peter
#!/bin/sh -v
# cat /var/sadm/install/logs/Java_Enterprise_System_install.B08011313|grep "Installing Package:"|cut -f 2 -d : >uninstall_pkg_list_short
ADMIN=/tmp/rm_pkgadmin
echo "action=nocheck" > $ADMIN
echo "idepend=nocheck" >> $ADMIN
echo "rdepend=nocheck" >> $ADMIN
echo "space=nocheck" >> $ADMIN
echo "mail=" >> $ADMIN
/etc/init.d/appserver stop
/etc/init.d/derby stop
/etc/init.d/directory stop
/usr/sbin/mpsadmserver unconfigure
/usr/sbin/directoryserver -u 5.2 unconfigure
for pkg in `cat uninstall_pkg_list_short`; do
pkgrm -A -n -a $ADMIN $pkg
done
#Remove directories
rm -rf /opt/SUNWam
rm -rf /opt/SUNWappserver
rm -rf /opt/SUNWasvmn
rm -rf /opt/SUNWcacao
rm -rf /opt/SUNWcomds
rm -rf /opt/SUNWcomm
rm -rf /opt/SUNWdsvmn
rm -rf /opt/SUNWimq
rm -rf /opt/SUNWjdmk
rm -rf /opt/SUNWma
rm -rf /opt/SUNWportal
rm -rf /etc/opt/SUNWam
rm -rf /etc/opt/SUNWappserver
rm -rf /etc/opt/SUNWcacao
rm -rf /etc/opt/SUNWma
rm -rf /etc/opt/SUNWportal
rm -rf /var/opt/mps
rm -rf /var/opt/SUNWam
rm -rf /var/opt/SUNWappserver
rm -rf /var/opt/SUNWcacao
rm -rf /var/opt/SUNWportal
rm -rf /var/sadm/prod/SUNWps7_0-entsys
rm -rf /usr/sunone/*
#MOVE THE PRODUCT REGISTRY FILE
mv /var/sadm/install/productregistry /var/sadm/install/productregistry-old
# 2
Peter,
nice!, I like your style!.
I opted to use solaris 10, whole root-zones, and install JES under that, this way, if it doesn't work, just nuke the zone, and move on to another one, fast/easy/straightforward, and no worries about 'contamination'
- when creating a new zone, make sure you use 'create -b' to force a whole-root zone creation. JES 2006Q4 looks to support sparse zones now so that's good to see they are working on this.
(using sol 10 end user selection, takes around 7-10 minutes for whole root, depending on hardware (tested on x4200 and sparc 220R)
Sol 10 zones/containers are a godsend for JES installs :-) as previously a 'clean' uninstall of JES is unreliable, so using peter's script looks great, to really 'remove' any legacy pieces within it.
Dave