Operating System - HP-UX
1834188 Members
2635 Online
110064 Solutions
New Discussion

Re: deleting directories using swremove

 
Sonison James
Frequent Advisor

deleting directories using swremove

Is there any option in swremove to remove the directory after all the files are removed?
4 REPLIES 4
Michael Tully
Honored Contributor

Re: deleting directories using swremove

Are you speaking about a depot?

Well you can use 'swremove -d' to remove depots, but if you speaking about old patches, using the cleanup command will work for this. There is also a preview option for it.

# swremove -d * @ /tmp/my_patch_depot

# cleanup -c 2 -p
# cleanup -c 2 (patches superseded at least twice)
Anyone for a Mutiny ?
Suresh Patoria
Super Advisor

Re: deleting directories using swremove

Hi,

If u talking about the application directory

Then it automatically remove after removing the application

swremove also remove the related files and directory to the appalication

Thanx
RolandH
Honored Contributor

Re: deleting directories using swremove

This should normaly done by the postremove script. If it is not configured there to remove that directory than it will be stay on your system after the remove and you have to manually remove it. In most cases it will not removed to keep some changes that was made to the product. ie some software has information in the /etc/opt// directory this could be useful files for the installation of the next version of the product. But you can't be sure and that is one reason I made a backup of my system before I remove software.

postremove scripts are in /var/adm/sw/products//pfiles/
(not all software products has these scripts)

HTH
Roland
Sometimes you lose and sometimes the others win
James R. Ferguson
Acclaimed Contributor

Re: deleting directories using swremove

Hi:

Place a period (dot character) immediately after the product or bundle name. For example:

# swremove XSW800GR1100.

Regards!

...JRF...