Operating System - HP-UX
1833553 Members
3371 Online
110061 Solutions
New Discussion

Re: Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

 
SOLVED
Go to solution

Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

Hi there.

I am new to HP-UX so please don't be so hard ;-)
Also I did try to figure it out by trying myself and reading the manuals and this forum.

The problem is, that I downloded software form the site in $SUBJECT.

So I recive a lot of software called xxxx.depot.gz.
I wasnt able to install this software neither by swinstall or by sam.

I tried to copy it to /var/spool/sw, tried to specify the path to the depots, tried to unpack it and tried to antar it (as it is nothing else than a tar archive).

All tries enden up with a message lik: "there is no depot in the path"

So, what els should I trie?

thanks,
pitu
pitu
5 REPLIES 5
John Palmer
Honored Contributor
Solution

Re: Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

Hi,

First unzip the file with gunzip:-

gunzip /tmp/xxx.depot

Then swinstall:

swinstall -s /tmp/xxx.depot

Make sure you have the full pathname to the file for swinstall

Regards,
John
James R. Ferguson
Acclaimed Contributor

Re: Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

Hi:

The '.gz. suffix indicates a compressed archive. Assume that you have downloaded the file to the /tmp directory. Then, uncompress it:

# cd /tmp
# gzip -d xxxx.depot.gz

Now run 'swinstall':

# swinstall -s /tmp/xxxx.depot

Or run 'swinstall' interactively by just typing 'swinstall' at the commandline. Now choose a local directory option and specify the depot as /tmp/xxxx.depot

Regards!

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

if file returns:
file ocmp.tar
ocmp.tar: tar file

The file is a standard tar file.

Typically a depot is a tar file with a few extra files that are identified by SD-UX

# file UnlimUserLic_11.00.depot
UnlimUserLic_11.00.depot: tar file

As you can see the depot file contains install scripts that identify it to swinstall as a depot:

# tar -tvf UnlimUserLic_11.00.depot
rw-r--r-- 0/3 5527 Mar 16 02:41 2001 catalog/INDEX
rw-r--r-- 0/3 245 Mar 16 02:41 2001 catalog/dfiles/INDEX
rw-r--r-- 0/3 136 Mar 16 02:41 2001 catalog/dfiles/INFO
r--r--r-- 0/3 2125 Sep 22 06:47 2000 catalog/UserLicense/pfiles/INDEX
r--r--r-- 0/3 357 Sep 22 06:47 2000 catalog/UserLicense/pfiles/INFO
r--r--r-- 0/3 331 Sep 15 06:13 2000 catalog/UserLicense/pfiles/README
r-xr--r-- 0/3 1677 Sep 15 06:13 2000 catalog/UserLicense/pfiles/checkinstall
r--r--r-- 0/3 956 Sep 22 06:47 2000 catalog/UserLicense/UNL-USER/INDEX
r--r--r-- 0/3 1124 Sep 22 06:47 2000 catalog/UserLicense/UNL-USER/INFO
r-xr--r-- 0/3 1023 Sep 15 06:13 2000 catalog/UserLicense/UNL-USER/checkremov
e
r-xr--r-- 0/3 6236 Sep 22 06:46 2000 catalog/UserLicense/UNL-USER/postinstal
l
r-xr--r-- 0/3 1455 Sep 15 06:13 2000 catalog/UserLicense/UNL-USER/verify
r--r--r-- 0/3 958 Sep 22 06:47 2000 catalog/UserLicense/UNL-USER.2/INDEX
r--r--r-- 0/3 1122 Sep 22 06:47 2000 catalog/UserLicense/UNL-USER.2/INFO
r-xr--r-- 0/3 1023 Sep 15 06:13 2000 catalog/UserLicense/UNL-USER.2/checkrem
ove
r-xr--r-- 0/3 6236 Sep 22 06:46 2000 catalog/UserLicense/UNL-USER.2/postinst
all
r-xr--r-- 0/3 1455 Sep 15 06:13 2000 catalog/UserLicense/UNL-USER.2/verify
rwxr-xr-x 0/0 0 Jan 1 00:59 1970 UserLicense/UNL-USER/
r-xr-xr-x 2/2 0 Jan 1 00:59 1970 UserLicense/UNL-USER/usr//
r-xr-xr-x 2/2 0 Jan 1 00:59 1970 UserLicense/UNL-USER/usr/lbin/sw//
r-xr--r-- 2/2 279 Oct 24 18:22 1997 UserLicense/UNL-USER/usr/lbin/sw/p
r-xr--r-- 2/2 311 Oct 24 18:22 1997 UserLicense/UNL-USER/usr/lbin/sw/pinsta
ll
rwxr-xr-x 0/0 0 Jan 1 00:59 1970 UserLicense/UNL-USER.2/
r-xr-xr-x 2/2 0 Jan 1 00:59 1970 UserLicense/UNL-USER.2/usr//
r-xr-xr-x 2/2 0 Jan 1 00:59 1970 UserLicense/UNL-USER.2/usr/lbin/sw//
r-xr--r-- 2/2 512 Oct 27 09:00 1997 UserLicense/UNL-USER.2/usr/lbin/sw/p
r-xr--r-- 2/2 311 Oct 27 09:00 1997 UserLicense/UNL-USER.2/usr/lbin/sw/pins
tall worse still:
# file welcomeHP.wav.gz
welcomeHP.wav.gz: awk program text

Maybe drop the file bit!

gunzip a file with a gz suffix.

Later,
Bill
It works for me (tm)

Re: Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

Ahh, ok

I tried it with swinstall -f -s ....

So, but this isn't solving the problem completly.

I do it with -s and than it pops up with the "TUI" and I only have to confirm anything and than it installs.

I'd rather would like it to install during a shellscript so I don't need to interact.

Where do I have to look for?

thanks,
pitu
pitu
Mark Landin
Valued Contributor

Re: Installing new software on 11.0, fromhttp://hpux.cs.utah.edu/hppd/hpux/

You need to specify what file(s) from the depot you want. If you don't specify anything, then it launches the GUI so you can select by hand. If you want all the software in the depot, use the '\*' selection. (You have to escape * with the \ character or the shell will pass some crazy things to the swinstall command...)

So, for instance, to update from a patch bundle depot, your statement might be:

swinstall -s -x patch_match_target=true -x autoreboot=true \*

which says, "only install patches which apply to products I already have installed on my target" (patch_match_target=true), "it's ok to reboot the machine if you need to" (autoreboot=true) and "select all filesets in the depot for this operation" (the \*)

If you try to install a fileset that requires a reboot, and you don't use the autoreboot=true statement on the command line, then the swinstall will fail.