cancel
Showing results for 
Search instead for 
Did you mean: 

swcopy problem

SOLVED
Go to solution
Gord Moore
Frequent Advisor

swcopy problem

I received a patch bundle from HP. I used swcopy without a target directory so it put all 253 patch directories in /var/spool/sw. Some other patch directories are in there which I don't want to reinstall. How do I get rid of the depot directories? I did not do a swinstall, but as I understand it they are registered. Will swremove take out the uninstalled buy registered depots? Do I have to mark each one?

I did make a sub-directory and re-ran swcopy into there, so now, do I have the patch bundles registered twice?

2 REPLIES
Sridhar Bhaskarla
Honored Contributor
Solution

Re: swcopy problem

Hi,

Run "swremove -d" to remove the depots. You can get all the registered depots by

swlist -l depot

Though there were previous depots under /var/adm/sw, each depot will get created under a different directory. The old ones are not going to impact your new depot.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
curt larson_1
Honored Contributor

Re: swcopy problem

How do I get rid of the depot directories?
as mention previous use swremove -d ...

I did not do a swinstall, but as I understand it they are registered.
Yes, swcopy automatically registers depots

Will swremove take out the uninstalled buy registered depots?
yes swremove will automatically unregister the depots.

Do I have to mark each one?
no swremove has a -f option where you can use a file that contains a list all the depots that you'd like to remove. Another way would be to use wildcards, if that is more appropriate.