Operating System - HP-UX
1826203 Members
3034 Online
109691 Solutions
New Discussion

Re: Swinstall from Local Directory

 
Per L
Occasional Advisor

Swinstall from Local Directory

I want use swinstall with the "Source Depot Type: Local Directory" but it will not work.


My question:
Can I mount the CDROM at host A and then copy & move the files from /cdrom/.... to another host B and put them into /tmp/dir/...
and then run swinstall with Local Directory=/tmp/dir ?

I got the error message :
"There is currently no depot software on host "xxxxxx" at location "/tmp/dir". Make sure that an absolute pathname is specified for location (beginning with "/")
Per
9 REPLIES 9
Massimo Bianchi
Honored Contributor

Re: Swinstall from Local Directory

Hi,
you missed some steps.

- test that you have a valid source

swlist -s /cdrom

this works ?

Let's assume yes

then, you can copy it.

cd /cdrom
tar cvf depot.tar *
rcp depot.tar hostB:/tmp
rlogin hostB
cd /tmp/dir
tar -xvf /tmp/depot.tar

After the copy, register it

swreg -l depot /tmp/dir

Remeber: if the source is a depot, you must copy all the dirs.


If there are error in some phase, let us know.

Massimo
Niraj Kumar Verma
Trusted Contributor

Re: Swinstall from Local Directory

Hi,

Its because you haven't registered the depot
# swreg -l depot /tmp/dir

or use

# swinstall -s /tmp/dir/*depot


Regards
-Niraj
Niraj.Verma@philips.com
Per L
Occasional Advisor

Re: Swinstall from Local Directory

I use the directory /tmp/CDtmp at host B:

# swreg -l depot /tmp/CDtmp


* Beginning Selection
* Targets: xxxx
* Objects: /tmp/CDtmp
ERROR: There is currently no depot software on host "xxxx" at
location "/tmp/CDtmp". Make sure that an absolute pathname is
specified for location (beginning with "/").
ERROR: More information may be found in the daemon logfile on this
target (default location is
gctiasu1:/var/adm/sw/swagentd.log).
* Selection had errors.


The directory and file structure in hostB:/tmp/CDtmp is exactly the same as is host:/cdrom
Per
Per L
Occasional Advisor

Re: Swinstall from Local Directory

The directory and file structure in hostB:/tmp/CDtmp is exactly the same as is host:/cdrom

should be:

The directory and file structure in hostB:/tmp/CDtmp is exactly the same as in hostA:/cdrom
Per
Per L
Occasional Advisor

Re: Swinstall from Local Directory

The files are from the OnlineJFS software (CD)


dr-xr-xr-x 2 root root 96 Nov 17 1999 b3929ca/
dr-xr-xr-x 46 root root 1024 Jul 25 08:28 catalog/
dr-xr-xr-x 6 root root 1024 Jul 25 08:28 jfs/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_17556/
dr-xr-xr-x 7 root root 1024 Jul 25 08:28 phco_17792/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18462/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18463/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18464/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18465/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18466/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18467/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18468/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18470/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18471/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18472/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_18473/
dr-xr-xr-x 9 root root 1024 Jul 25 08:28 phco_19491/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_19623/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_19624/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phco_19656/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_19673/
dr-xr-xr-x 5 root root 96 Jul 25 08:28 phco_19732/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20026/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20027/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20028/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phco_20029/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20030/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20031/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20032/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20033/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20034/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20035/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20036/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phco_20037/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20038/
dr-xr-xr-x 3 root root 96 Jul 25 08:28 phco_20039/
dr-xr-xr-x 5 root root 96 Jul 25 08:28 phco_20054/
dr-xr-xr-x 6 root root 96 Jul 25 08:28 phkl_14252/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phkl_17038/
dr-xr-xr-x 13 root root 1024 Jul 25 08:28 phkl_18543/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phkl_19800/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phkl_19942/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phkl_19991/
dr-xr-xr-x 4 root root 96 Jul 25 08:28 phkl_20016/


Maybe I have to "make a depot" of the files ?!
Per
Karthik S S
Honored Contributor

Re: Swinstall from Local Directory

On the host which has the CDROM mounted,

swreg -l depot /cdrom

if it gives error check out the subdirectories which contains the product and register it.

If you want to dump the contents to a temp directory,

swcopy -s /cdrom/sw_location @ /tmp/CDdump

From the remote host,

swinstall -s cdhost:/cdrom/sw_location \*
or
swinstall -s cdhost:/tmp/CDdump \*

Regards,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
RAJESH GANGADHARAN
Regular Advisor

Re: Swinstall from Local Directory

Hi
There are two options to install the software

1) mount the cd on host A and register the depot using swreg

eg;

mount cdrom in /cdrom
swlist -s /cdrom
if it displays the software located in /cdrom
do
swreg -l depot /cdrom
this will register a depot and from host B you can install the software by

swinstall -s hosta:/cdrom

2) mount the cdrom in host a and check the software using swlist.
register the cdrom
from host b copy the software from hosta:/cdrom using
swcopy -s hosta:/cdrom * @/tmp/depot

then you can install the software localy

-Rajesh
Let the choices you make today be the choices you can live with tomorrow.
Massimo Bianchi
Honored Contributor

Re: Swinstall from Local Directory

Hi,
did

swlist -s /cdrom

from the hostA worked ?

This is the first question.

Massimo

Pete Randall
Outstanding Contributor

Re: Swinstall from Local Directory

Just use swcopy to put the files where you want them. No need to use swreg - swcopy takes care of registering the depot. I generally use the default location: /var/spool/sw.


Pete


Pete