Operating System - HP-UX
1833827 Members
2055 Online
110063 Solutions
New Discussion

Software Removal - Newbie Question

 
SOLVED
Go to solution
Fred Sanford III
Occasional Advisor

Software Removal - Newbie Question

I am trying to install the latest java version (which installs in /opt)as part of my DST prep. I am shy on space and free PEs. I already ran cleanup. I see netscape, an old version of Java, a bunch of apps I can get rid of in /opt, but they do not show when I run swlist, so I can't swremove them. Is there some other way to "cleanly" uninstall software that does not show in swlist?

Thanks in advance, guys!
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Software Removal - Newbie Question

If they don't show in 'swlist' then it will depend on the app itself. Some may have instructions on what to do, others you may just have to 'rm -rf /dir' to get rid of them.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Software Removal - Newbie Question

The general and certainly safe answer to your question is "no". Swlist only knows about software that was installed via swinstall. For all others, it doesn't have a clue and the only possible answer to your question is to really know your applications. However, note that /opt does not have to be on the boot disk or even in vg00, for that matter. You could consider copying everything over to /opt2 for example and then changing /etc/fstab so that /opt now mounts on the new filesystem and reboot.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Software Removal - Newbie Question

Hi Fred:

> Is there some other way to "cleanly" uninstall software that does not show in swlist?

No, that's just one pitfall of *not* having the SD (Software Distibutor) umbrella.

About the best you can do is to find the parent directory of software and remove it and its contents.

I'd also search ('grep') for files in '/etc/rc.config.d' and '/sbin/init.d' for startup scripts that reference the product name in whole or in part.

Regards!

...JRF...
Fred Sanford III
Occasional Advisor

Re: Software Removal - Newbie Question

First time I've posted and it rokks! Great info right away. Sorry about the points disparity, you all provided me with information I didn't have about how software is handled in hpux and solutions to my problem. I do appreciate it. I'll probably leave it up over night just to see if anyone else responds and then close.

Thanks!

Fred
Fred Sanford III
Occasional Advisor

Re: Software Removal - Newbie Question

Thanks for the help, gurus.