Operating System - HP-UX
1847175 Members
5519 Online
110263 Solutions
New Discussion

How to install multiple patch

 
SOLVED
Go to solution
Mousa55
Super Advisor

How to install multiple patch

Hello

how to install this patch "perl-5.8.8-hppa-11.11.depot.tgz" to this /tmp directory by using swinstall.
and i need to reboot the server
" -x autoreboot=true"

Plz with details.
thanks and best regards
42 REPLIES 42
Steven E. Protter
Exalted Contributor

Re: How to install multiple patch

Shalom,

First, in generel I unzip/untar the patch.

swinstall -x autoreboot=true -s /tmp/perl-5.8.8-hppa-11.11.depot \*

This depot is not going to autoreboot anything though. Best to just manually boot after the installation or use a script including the line above.

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
Pete Randall
Outstanding Contributor

Re: How to install multiple patch

Basically there are two ways to install multiple patches.

First, to do so with only one re-boot, use swcopy to place them all into the same depot, then use swinstall. I do it interactively and select all the patches and click install.

Second, you can use a simple for loop like this:

for i PH*.depot
do
swinstall -x autoreboot-true -x patch_match_target=true
done


Pete

Pete
Mousa55
Super Advisor

Re: How to install multiple patch

Hi steven
the error message is appeared "could not contact host 'perl-5.8.8-hppa-11.11.depot\*' make sure the hostname is correct and absolute pathname is specified (beginning with / ) "

thanks
Pete Randall
Outstanding Contributor

Re: How to install multiple patch

Make sure your host name resolution is correct. You might want to run /sbin/set_parms hostname to ensure it's configured properly.


Pete

Pete
Yogeeraj_1
Honored Contributor

Re: How to install multiple patch

hi,

most probably, the path specified is not correct.

can you retry using the absolute path?

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Peter Nikitka
Honored Contributor

Re: How to install multiple patch

Hi,

you missed a space here:
NOT: 'perl-5.8.8-hppa-11.11.depot\*'
BUT: 'perl-5.8.8-hppa-11.11.depot \*'

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Mousa55
Super Advisor

Re: How to install multiple patch

GOOD MORNING
Hi peter

the same problem and the same message

this the message ---->

" # swinstall -s perl-5.8.8-hppa-11.11.depot \*

======= 06/12/07 15:10:02 WAT BEGIN swinstall SESSION
(non-interactive) (jobid=ruxapp02-0081)

* Session started for user "root@ruxapp02".

* Beginning Selection
* Target connection succeeded for "ruxapp02:/".
ERROR: Could not contact host "perl-5.8.8-hppa-11.11.depot".Make sure the hostname is correct and an absolute pathname is
specified (beginning with "/").
* Source connection failed for "perl-5.8.8-hppa-11.11.depot:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this target (default location is perl-5.8.8-hppa-11.11.depot:/var/adm/sw/swagentd.log).
* Selection had errors.

======= 06/12/07 15:10:03 WAT END swinstall SESSION (non-interactive)(jobid=ruxapp02-0081) "

and i am using the absolute path and useless

i need the solve this problem in fast time

thanks and best regards


Ivan Krastev
Honored Contributor

Re: How to install multiple patch

Hi Nejad,

Exact syntax is :

swinstall -s /path/to/perl-5.8.8-hppa-11.11.depot \*

regards,
ivan
Mousa55
Super Advisor

Re: How to install multiple patch

HI Lvan

th same problem

" ERROR: There is currently no depot software on host "ruxapp02" at location "/tmp/perl-5.8.8-hppa-11.11.depot". Make sure that an
absolute pathname is specified for location (beginning with "/").


thanks
Marcel Burggraeve
Trusted Contributor

Re: How to install multiple patch

Did you actually unpack the file or do you still have the tgz file ?

gunzip perl-5.8.8-hppa-11.11.depot.tgz
tar xvf perl-5.8.8-hppa-11.11.depot.tar

After this you can use the swinstall command.
Mousa55
Super Advisor

Re: How to install multiple patch

HI mecel

i am unpack the file before first my message in this forum.

thanks

Note: what the mean of
" ERROR: There is currently no depot software on host "ruxapp02" at location "/tmp/perl-5.8.8-hppa11.11.depot".

thanks
Peter Nikitka
Honored Contributor

Re: How to install multiple patch

Hi,

what was the working directory, when you did unpack the *.tgz file? It should have been /tmp .
Please send us the output of
gunzip
to see the directory name after the unpacking of the tgz-file.

The message means exactly what it says - I suspect, that the directory
/tmp/perl-5.8.8-hppa11.11.depot
doesn't exist. Try
ls -l /tmp/perl-5.8.8-hppa11.11.depot

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Marcel Burggraeve
Trusted Contributor

Re: How to install multiple patch

Basically it says it can't see the software.
That's why I wondered if it still was packed and had a different name or something like that.
Is that depot file actually located in /tmp ?
Is your server running HPUX 11.11 ( 11i V1 ) ?
Have you tried to just do
swinstall -s //perl-5.8.8-hppa-11.11.depot
( so without the \* at the end of the command )
Might be some obvious questions but you have to start somewhere.
Mousa55
Super Advisor

Re: How to install multiple patch

HI Peter

" gunzip and gzip -d " to this file only not work i don't know this the output
" # gunzip
gunzip: stdin: not in gzip format
Tar: blocksize = 0; broken pipe? "

thanks
Peter Nikitka
Honored Contributor

Re: How to install multiple patch

Hi,

possibly the unzip has already been performed - check via
file perl-5.8.8-hppa-11.11.depot.tgz

If this is the case, try the tar command directly:
tar tvf perl-5.8.8-hppa-11.11.depot.tgz | sed 2q

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Mousa55
Super Advisor

Re: How to install multiple patch

HI
this is the output "
# tar tvf perl-5.8.8-hppa-11.11.depot.tar | sed 2q
rw-r--r-- 0/3 1186 Sep 19 19:05 2006 catalog/INDEX
rw-r--r-- 0/3 193 Sep 19 19:05 2006 catalog/dfiles/INDEX "

in addition to
"
wd_action.dbg
dtdbcache_10.8.33.43:0
catalog
perl "

thanks
Dennis Handly
Acclaimed Contributor

Re: How to install multiple patch

># tar tvf perl-5.8.8-hppa-11.11.depot.tar
rw-r--r-- 0/3 1186 Sep 19 19:05 2006 catalog/INDEX

Unless this is a tar of a directory depot, you should NOT untar this. Just tell swinstall to install directly:
# swinstall -s $PWD/perl-5.8.8-hppa-11.11.depot.tar \*
Mousa55
Super Advisor

Re: How to install multiple patch

HI

there is some improvement

but still some error ----->

see in Attachment

thanks
Dennis Handly
Acclaimed Contributor

Re: How to install multiple patch

>see in Attachment

This is not a text file. I need something that can be seen on HP-UX. Try good old cut&paste.
Mousa55
Super Advisor

Re: How to install multiple patch

HI

OK i am attach text file

thanks
Mousa55
Super Advisor

Re: How to install multiple patch

HI

OK i am attached text file

thanks
Marcel Burggraeve
Trusted Contributor

Re: How to install multiple patch

Looks like you downloaded perl from one of the porting archives.
On the page where you download perl it says there's a number of runtime dependencies.
http://hpux.its.tudelft.nl/hppd/hpux/Languages/perl-5.8.8/
Before you can install perl you need to make sure you have those dependencies installed as well.
The dependencies are : db gdbm gettext libgcc libiconv
Peter Nikitka
Honored Contributor
Solution

Re: How to install multiple patch

Hi,

since your depot (= tarfile) does not contain each dependency of the product(s) to be installed AND these deps are not installed already at the target, check if ypu have already a depot containing the product 'gdbm'.
If not, download it from the porting center together with all its dependencies.

Then you have two possiblities:
1) Install gdbm and friends in the first step, then your perl depot
2) Create a depot containing the products completely via swcopy, e.g.
swcopy -s /path/to/depot_or_tar \* @ /path/to/newdepot

and then install from that depot.

Having more than one machine to be installed, I recommend 2).

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dennis Handly
Acclaimed Contributor

Re: How to install multiple patch

Your latest swinstall error goes back to your original question about installing multiple patches:
NOTE: but it depends on
the following software items which could not be found in the
source. However, these items may already be in the target.
This will be checked during the Analysis Phase: db.db-RUN
gdbm.gdbm-RUN

So either you must install db.db-RUN & gdbm.gdbm-RUN first, or you must install them all at once.

I don't see anyone telling you about using swcopy:
# swcopy -s $PWD/perl-5.8.8-hppa-11.11.depot.tar \* @ $PWD/big_depot

And repeat with the other dependencies. Then use swinstall to install from big_depot:
# swinstall -s $PWD/big_depot \*