Operating System - HP-UX
1834814 Members
2741 Online
110070 Solutions
New Discussion

swremove doesn't delete directories

 
SOLVED
Go to solution
Jdamian
Respected Contributor

swremove doesn't delete directories

Hi

I created a depot by means of swpackage command a PSF file.

I installed the depot on my box with no error.
I decided to remove it... files are removed but directories aren't... why ?
is this the default behaviour ?
5 REPLIES 5
Shaikh Imran
Honored Contributor
Solution

Re: swremove doesn't delete directories

Hi,
Yes swremove does'nt remove the directories..
We have to Manually delete them..

Regs
I'll sleep when i am dead.
Sanjay Kumar Suri
Honored Contributor

Re: swremove doesn't delete directories

I don't think swremove the directories as well.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Robert-Jan Goossens
Honored Contributor

Re: swremove doesn't delete directories

Yes this default behaviour, swremove will leave the directory + additional (backup/config)files intact.

Regards,
Robert-Jan
Fabio Ettore
Honored Contributor

Re: swremove doesn't delete directories

Hi,

it shows as Microsoft is the best! When a product is removed directories are removed too! :-)
AHHHHHH! What am I saying???
It is a delayed "fools day"! :-)

Well, unfortunately HP-UX doesn't remove directories too. You should remove them manually.

Best regards,
Ettore
WISH? IMPROVEMENT!
G. Vrijhoeven
Honored Contributor

Re: swremove doesn't delete directories

Hi,

Like others have mentioned, this is default. This is becouse the software can create extra files during installetion ( configure script) or during operation.

If you are sure the software does not create files ( log files, config files) in the dir you can create a postremove script that removes the dirs.

HTH,

Gideon