1834149 Members
2230 Online
110064 Solutions
New Discussion

software depot

 
SOLVED
Go to solution
gany59
Regular Advisor

software depot

could any body tell how to create the software depot file in hp-ux 11iv3.
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: software depot

Hi:

To create or modify the contents of a software depot, use 'swcopy'. If you enter 'swcopy' at the command line without any options, you will get an interactive session.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: software depot

Shalom,

Depots can be created from patches, with swcopy.

http://docs.hp.com/en/5992-4020/ch03s01.html

They can be created to deliver new software or even make a disk based copy of the OS for system cloning and other installation.

Cookbook:
http://www.docs.hp.com/en/SD/cookbook.html

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
Sharma Sanjeev
Respected Contributor

Re: software depot

Hi

If you want to create depot from cdrom

mount your cdrom to /cdrom,
copy the contents of the depot to the local system
under the /var/tmp/depot directory.
swcopy -s /cdrom/patch_name \* @ /var/tmp/depot

Invoke an interactive session, using the default depot at hostX as the source:
swcopy -i -s hostX

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
gany59
Regular Advisor

Re: software depot

hi sharma

could u tell how to copy the specific packages from cdrom to software depot.say my depot file /var/depot and the package name is ignite.THXS in advance
Sharma Sanjeev
Respected Contributor
Solution

Re: software depot

Hi Gany59

mount your cdrom to /cdrom,
copy the contents of the depot to the local system
under the /var/depot directory.
swcopy -s /cdrom/ignite \* @ /var/depot

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
gany59
Regular Advisor

Re: software depot

swcopy -s /cdrom/ignite \* @ /var/depot.. May i know "\" indicates what
James R. Ferguson
Acclaimed Contributor

Re: software depot

Hi:

> swcopy -s /cdrom/ignite \* @ /var/depot.. May i know "\" indicates what

The '\' escapes the '*'. This prevents the shell from trying to expand the '*' into a list of files which would then be passed to 'swcopy'. Using the escaped '*' means that that is passed intact to 'swcopy'.

To see the difference, do:

# echo *

...and:

# echo \*

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: software depot

>could any body tell how to create the software depot file in HP-UX.

Strictly speaking, you can only create depots with swpackage(1m) or SPB. swcopy will only copy/merge depots.

>May I know "\" indicates what?

That we are too lazy to type 3 chars, "*", to suppress shell wildcard expansion. :-)

Note when you use swcopy, you typically use "-x enforce_dependencies=false" to not complain.