Operating System - HP-UX
1834445 Members
1933 Online
110067 Solutions
New Discussion

How to delete and add a file in the depot using swmodify

 
shashikala K.H
Occasional Advisor

How to delete and add a file in the depot using swmodify


Hi ,

I want to delete and add a file into the product depot , without changing its cksums , can this be achieved using swmodify?. What options should I specify to achieve this.

Thanks,
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: How to delete and add a file in the depot using swmodify

I'm confused, if you delete and add a file with the same checksum, nothing changed except for possibly the date, ownership and permissions??

While you can use swmodify to update the IPD info, it doesn't actually change the files there. See your other thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1043287

This seems to be the case from swmodify(1m):
Common uses of swmodify include:
+ adding file definitions to the existing list of file
+ changing the values of existing attributes.
+ defining new objects. Example: to "import" the definition of
Torsten.
Acclaimed Contributor

Re: How to delete and add a file in the depot using swmodify

Think about checksums and you will see the conflict ...

If you want to add files to a depot use swcopy.
For delete use swremove (the source must be the depot).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
whiteknight
Honored Contributor

Re: How to delete and add a file in the depot using swmodify


shashikala,

you can add using swmodify. but delete you need to use swremove the depot and swinstall again.

WK
Problem never ends, you must know how to fix it
Dennis Handly
Acclaimed Contributor

Re: How to delete and add a file in the depot using swmodify

>WK: you can add using swmodify.

swmodify will only add descriptions, not the file itself. You would either have to use swpackage to redo it, or to cheat and look under the covers and manually add it inside the depot. (The directories are created for you though. :-)
whiteknight
Honored Contributor

Re: How to delete and add a file in the depot using swmodify

Dennis,

thanks.

WK
Problem never ends, you must know how to fix it
shashikala
New Member

Re: How to delete and add a file in the depot using swmodify


Thank you for all , I got the solution.
whiteknight
Honored Contributor

Re: How to delete and add a file in the depot using swmodify

shashikala,

Good to hear. please assign points to close this thread.

Thank You

WK
Problem never ends, you must know how to fix it