1821808 Members
3265 Online
109638 Solutions
New Discussion юеВ

Removing old Apps

 
Marty Metras
Super Advisor

Removing old Apps

Background:
I'm trying to clean out HP 9000, HP-UX 10.20.
I see some how many versions of the Apps we use have been left on the box. A couple month ago I renamed the directories where I found the files. I did this just in case. I'm sure some of these programs were installed with some kind of installer that may or may not uninstall them cleanly.
I know that in UNIX I could just trash what it isn't using. I don't thing this is the clean way.
Question:
What is the command I am looking for to do this?
Is there a file that show what was installed?
Being that too many people have worked on this box I may fine this information in places other than normal.
Any help would be nice.
Thanks Marty.
The only thing that always remain the same are the changes.
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Removing old Apps

If the apps were set up to be installed with HP-UX Software Distributor, which I think all apps should be, the you can use swlist to see what is installed. Do an 'swlist -l product' and see what comes up. If they show up with swinstall, then you can remove them with swremove.

If they do not show up with swinstall, then you would need to look at each application individually to see how it was installed and if there is an easy way to uninstall it.

If you can find any documentation for the apps, look at the installation instructions and then reverse them to uninstall.

More than likely, for apps not shown with swlist, you could remove the directories and that would get you most of the way to where you want to be. You did a good thing by renaming the directories first. That way you know if something is still being used.
James R. Ferguson
Acclaimed Contributor

Re: Removing old Apps

Hi Marty:

Patrick's right. If it shows in 'swlist' then use 'swremove' to remove it.

I merely want to add, *never* manually remove or otherwise diddle with files (or directories) in the /var/adm/sw/ directory.

/var/adm/sw is the repository of knowledge for SD installed products (the OS, patches, and products installed with Software Distributer (swinstall)). Diddle here, and you can "toast" yourself.

Use the 'cleanup' utility if you need to regain space in the /var directory. This utility can be added/updated on 10.X with patch PHCO_20824. For 11.0, patch PHCO_22044 is applicable. man pages come along with the patch(es).

...JRF...
Richard Darling
Trusted Contributor

Re: Removing old Apps

James,

I noticed what you said about the /var/adm/sw/ directory. I routinely trim the log files using SAM - don't think there is an issue??
RD
James R. Ferguson
Acclaimed Contributor

Re: Removing old Apps

Hi Richard:

No, using SAM to trim the SD logs isn't a problem. The real 'killers' are the 'patch' and 'product' subdirectories of /var/adm/sw/ which form the IPD. My personal preference is to use 'cleanup' which has the option to only trim SD logs [cleanup -t] as well as to trim logs and to remove old patches. My statement was more meant to foster the use of extreme caution when one is "in" this directory.

Regards!

...JRF...
Marty Metras
Super Advisor

Re: Removing old Apps

Thanks Patrick,Jamesand and Richard
This Information Should give me enough to work on.
Marty
The only thing that always remain the same are the changes.