Operating System - HP-UX
1823181 Members
3881 Online
109647 Solutions
New Discussion юеВ

how to remove a product that is not showing up as installed

 
SOLVED
Go to solution
SSO Montgomery
Advisor

how to remove a product that is not showing up as installed

HI,

We have a prog who was trying to use swremove to remove an ol version of MQSeries from an HP k370 system running 11.11 so that she can install a later version. Her instructions say to use swremove to reomove old version and then swinstall to install the newer version.
However, SAM is not showing that MQSeries is loaded.
She was wondering if it work ok if she just went ahead and loaded the new one anyway.

What do you think about this? Any ideas??

4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: how to remove a product that is not showing up as installed

It shouldn't be a problem to go ahead and load the new one if the old version is not showing up in swlist.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor
Solution

Re: how to remove a product that is not showing up as installed

Hi SSO:

I would do the following:

1) Check the software with:
# swlist
# swlist -lfileset | grep soft_name

2) If the software come up with swlist, then it will be removable with swremove software.
3) If not, then the software might have been installed with an inbuilt utility or script.
4) For safe side, create a good backup of the software files/directories
5) Remove the HOME directories, start/shut scripts from /sbin, remove any configuration files.
6) Install new patches for the software
7) Install the new version of software.

HTH,
Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: how to remove a product that is not showing up as installed

What you can do is "labotomize" the INDEX file. This is the final option if all does not work.. I like it .. since it's brutal !!

# cd /var/adm/sw/products
# vi dummy.psf
product
tag dummy
fileset
tag dummy
# swpackage -s ./dummy.psf
# swinstall dummy
# mv /tmp
# mv INDEX /tmp/INDEX
# swinstall -x reinstall=true dummy
# swlist -l fileset | more
===> Check to make sure they are gone. Then remove all dirs/files from the FS.
# swremove dummy
# rm dummy.psf
# swremove -d dummy

Do not worry as the INDEX file will be recreated.
Stefan Schulz
Honored Contributor

Re: how to remove a product that is not showing up as installed

Hi,

software that is not showing up in swlist is normally installed 1. using a install-script or 2. by copying the files from another machine.

Removing is pretty easy:

1. check the programms directory. If it was installed using a script, there should be a script to de-install. This might be also the install script itselfe which has an de-install option.

2. Just remove the programms directory. You could check with chatr if the binaries use some special libraries in the lib directories. But be carefull removing libs.

If the instructions say to remove the old version i would follow this. Already seen some strange behaviors not doing so.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.