Operating System - HP-UX
1847821 Members
3788 Online
104021 Solutions
New Discussion

How to get depot registered so it is accepted by swinstall

 
SOLVED
Go to solution
Frank de Vries
Respected Contributor

How to get depot registered so it is accepted by swinstall

Hi,

I lack a bit of experience on this.
This is what I tried but to no avail:

I have a downloaded a depot file
gcc-4.0.2-hppa-11.11.depot
for hpux 11.11 v1.

I placed it in /var/spool/sw
(admit that I had to mkdir sw)

I then ran swinstall , but
it complained that I did not have
any registered depots or depot software.

Right thought I ,
I run swreg -l depot /var/spool/sw
and it complains in similar matter:

[vwbsrv3:/opt/eHealth/depot]# swreg -l depot /var/spool/sw

======= 12/06/05 15:02:55 MET BEGIN swreg SESSION (non-interactive)

* Session started for user "root@vwbsrv3".

* Beginning Selection
* Targets: vwbsrv3
* Objects: /var/spool/sw
ERROR: There is currently no depot software on host "vwbsrv3" at
location "/var/spool/sw". 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 vwbsrv3:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 12/06/05 15:02:56 MET END swreg SESSION (non-interactive)

[vwbsrv3:/opt/eHealth/depot]#


Pff, I missing something here, how do I get
this depot activated or created ???
Thx.

Look before you leap
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: How to get depot registered so it is accepted by swinstall

If you use swcopy to place your depot file in /var/spool/sw, it will be registered. Remove it, then swcopy it back in.


Pete

Pete
Andy Torres
Trusted Contributor

Re: How to get depot registered so it is accepted by swinstall

You almost had it. try the full path:

swreg -l depot /var/spool/sw/gcc-4.0.2-hppa-11.11.depot

Re: How to get depot registered so it is accepted by swinstall

first move this file to /tmp

then use swcopy to copy this depot to /var/spool/sw.

for example

swcopy -s /tmp/gcc-4.0.2-hppa-11.11.depot

select target as /var/spool/sw

this will automatically appear in the list.

HTH


Frank de Vries
Respected Contributor

Re: How to get depot registered so it is accepted by swinstall

So close and yet so far,
Fantastic !!
Thx for your answers
Look before you leap
Patrick Wallek
Honored Contributor

Re: How to get depot registered so it is accepted by swinstall

If you are just installing this on the local machine, then there really isn't any reason to register it.

When you invoke swinstall, if you use it interactively, then just skip past the message about no software in /var/spool/sw, and then a box will come up that allows you to tell swinstall where to look for the software. Just point it to the fully qualified path to your depot file and go from there.
Luk Vandenbussche
Honored Contributor

Re: How to get depot registered so it is accepted by swinstall

Frank,

You can also install it by

swinstall -s /dir/gcc-4.0.2-hppa-11.11.depot

Then you don't need to register the depot
Andy Torres
Trusted Contributor

Re: How to get depot registered so it is accepted by swinstall

If you just want to get it installed without having to register it, put the entire path (/var/spool/sw/gcc-4.0.2-hppa-11.11.depot) on the "Source Depot Path..." line and proceed from there.
Frank de Vries
Respected Contributor

Re: How to get depot registered so it is accepted by swinstall

Sorry Luc I closed to quickly :)
Anyway I am going to open
another question right now ,
so you have another chance !!
Look before you leap
Frank de Vries
Respected Contributor

Re: How to get depot registered so it is accepted by swinstall

Never saw that re-open thread button !
quite handy :) :)
Look before you leap