Operating System - HP-UX
1834284 Members
2845 Online
110066 Solutions
New Discussion

Re: swcopy cmd to create depot for patching

 
Jerry_109
Super Advisor

swcopy cmd to create depot for patching

HP-UX B.11.11 U 9000/800/A500-7X
*************************************

Hello All,

I'm trying to create a depot from a tar file for patching, and I receive the following error:
* Started install agent on "/" for root@hohp08.scif.com,
pid=25626, 02/17/06 09:28:22 PST
* Agent pid=25626 completed. 02/17/06 09:28:46 PST
* Started copy agent on "/var/adm/sw/depots/js" for
root@hohp08.scif.com, pid=25636, 02/17/06 09:33:53 PST
NOTE: The target "/var/adm/sw/depots/js" does not exist and will be
created. pid=25636 02/17/06 09:33:53 PST
* Started source agent on "/tmp/MasterDepot_Dec05.tar" for
root@hohp08.scif.com, pid=25640, 02/17/06 09:33:54 PST
ERROR: The INDEX file on the source did not exist or could not be
read.
ERROR: The target "/tmp/MasterDepot_Dec05.tar" could not be opened.
pid=25640 02/17/06 09:33:57 PST
* Agent pid=25640 completed. 02/17/06 09:33:57 PST
* Agent pid=25636 completed. 02/17/06 09:33:57 PST
* Started copy agent on "/var/adm/sw/depots/js" for
root@hohp08.scif.com, pid=25642, 02/17/06 09:35:07 PST
NOTE: The target "/var/adm/sw/depots/js" does not exist and will be
created. pid=25642 02/17/06 09:35:07 PST
* Started source agent on "/tmp/MasterDepot_Dec05.tar" for
root@hohp08.scif.com, pid=25646, 02/17/06 09:35:07 PST
ERROR: The INDEX file on the source did not exist or could not be
read.
ERROR: The target "/tmp/MasterDepot_Dec05.tar" could not be opened.
pid=25646 02/17/06 09:35:10 PST
* Agent pid=25646 completed. 02/17/06 09:35:10 PST
* Agent pid=25642 completed. 02/17/06 09:35:10 PST
root@hohp08[/tmp]


*****************************************
command :
# swcopy -s /tmp/MasterDepot_Dec05.tar \* @ /var/adm/sw/depots/js

3 REPLIES 3
Jeff_Traigle
Honored Contributor

Re: swcopy cmd to create depot for patching

You can't use a tar file as the source. swcopy (as well as the other SD-UX commands) only work on depot files. If the depot file is contained in the tar file, extract it first. Otherwise, you need to package the files with swpackage or the GUI (Software Package Builder, I think is the name of it).
--
Jeff Traigle
Steven E. Protter
Exalted Contributor

Re: swcopy cmd to create depot for patching

swcopy is designed to copy .depot software into another, larger .depot file.

The process you need to follow is swpackage, after untarring your tar file and including it in the file you use to create the depot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bharat Katkar
Honored Contributor

Re: swcopy cmd to create depot for patching

Hi,
Swcopy or SDUX command only understand the files created with .depot format using swpackage command.
The source file you are specify is not compatible with SDUX.

Regards,
You need to know a lot to actually know how little you know