Operating System - HP-UX
1819803 Members
3212 Online
109607 Solutions
New Discussion юеВ

how to create depot in hpux

 
avizen9
Esteemed Contributor

how to create depot in hpux

Hello friends,
i want to create one Centralize server on my office site and then from that server i can install all sw and application, how to do that.

i am having few .depot source how to register it in this server so that from any other station i can install it through swinstall -s

i need to use swreg тАУl depot @ /path/package-name.depot ?

thanks for your reply
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: how to create depot in hpux

>i need to use swreg -l depot @ /path/package-name.depot?

You should remove that "@". Note if you used swcopy, it should have automatically registered it.
avizen9
Esteemed Contributor

Re: how to create depot in hpux

where can i get .depot files?
Dennis Handly
Acclaimed Contributor

Re: how to create depot in hpux

>where can i get .depot files?

Are you talking about patches, HP software or your own?

For the latter, you'll need to use swpackage to create your depots.
The other two should already be in SD depot format.
avizen9
Esteemed Contributor

Re: how to create depot in hpux

Hello thanks for reply,
i am talking about s/w and applications for hpux
i also got one question, i am having running server at my remote site santaclara at present i am usging that server to install all application and s/w, how to ftp all source from that server, i got root access there,

please check attachment.
Dennis Handly
Acclaimed Contributor

Re: how to create depot in hpux

>i am having running server at my remote site santa clara

(Remote? That's just down the street. :-)

>how to ftp all source from that server, i got root access there

Why do you want to ftp the depot?
You can directly install from the depot:
# swinstall -s swdepot.X.Y.Z.com:depot-path
avizen9
Esteemed Contributor

Re: how to create depot in hpux

i know i can directly install from there, but as i mentioned i need to create my own server at local site. i need to copy all depot. from there how?
Dennis Handly
Acclaimed Contributor

Re: how to create depot in hpux

>i need to create my own server at local site. i need to copy all depot from there how?

Ah, instead of swinstall, you use swcopy for each depot.

You can write a script to take the output from swlist and use it to swcopy each depot.
#!/usr/bin/ksh

SOURCE=swdepot.X.Y.Z.com
swlist -l depot -s $SOURCE | grep "^ " |
while read DEPOT; do
echo swcopy -x enforce_dependencies=false \
-s $SOURCE:$DEPOT \* @ $DEPOT
done

When you think you have gotten the syntax right, you can remove the "echo".