Operating System - HP-UX
1834447 Members
2187 Online
110067 Solutions
New Discussion

Re: installing patches from extracted depot

 
Geeta Gharpure
New Member

installing patches from extracted depot

Following fails for me:

mkdir /tmp/patches

hpr63# cp /HP_export/BASIC/MUSTHAVE_6.0/11.11/NEW60/HP_PATCH4/latest_hp_add_patches/PHSS_31000.depot /tmp/patches/.

hpr63# ls /tmp/patches
PHSS_31000.depot

hpr63# mkdir /tmp/patches/ex

hpr63# pwd
/tmp/patches
hpr63# cp PHSS_31000.depot ./ex/.

hpr63# pwd
/tmp/patches/ex
hpr63# tar -xf PHSS_31000.depot
hpr63# ls
PHSS_31000 PHSS_31000.depot catalog
hpr63# rm -rf PHSS_31000.depot
hpr63# ls
PHSS_31000 catalog

hpr63# swinstall -s /tmp/patches/ex/ PHSS_31000

======= 08/22/07 15:00:43 IST BEGIN swinstall SESSION
(non-interactive) (jobid=hpr63-0421)

* Session started for user "root@hpr63".

* Beginning Selection
* Target connection succeeded for "hpr63:/".
ERROR: "hpr63:/tmp/patches/ex/": Cannot establish a lock on this
target because of an external error (for example, the lock
file could not be created).
* Source connection failed for "hpr63:/tmp/patches/ex/".
WARNING: More information may be found in the daemon logfile on this
target (default location is hpr63:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 08/22/07 15:00:44 IST END swinstall SESSION (non-interactive)
(jobid=hpr63-0421)

so basically patch install fails if I use the extract directory as source.
What am I missing?
Please help. Thanks in advance.
5 REPLIES 5
Joelmel Roche
Valued Contributor

Re: installing patches from extracted depot

Hi,
This is caused by a missing lock file in the catalog sub-directory
of the depot. To fix the problem, you would need to issue the touch(1)
command as root to create a file called swlock in the appropriate
directory:

cd /depot_path/catalog
touch swlock

where depot_path is the full path to the depot location.

Dennis Handly
Acclaimed Contributor

Re: installing patches from extracted depot

You should NOT be extracting the files from the depot. You should just install the patch by:
# swinstall -s /tmp/patches/PHSS_31000.depot \*

(You don't need that ex/ directory.)
dipesh_2
Regular Advisor

Re: installing patches from extracted depot

Hi,

to install patches on hpux systme you need to extract shar file to .depot file. sh PHXX.XXXX will create two files. .txt and PHXX.xxxx.depot.
To install patch on hpux system run swinstall command as follows
# swinstall -s /tmp/patches/PHxx_xxxx.depot


thanks
dipesh
whiteknight
Honored Contributor

Re: installing patches from extracted depot

Hi Geeta,

once you sh PHSS_31000 -> it will extract PHSS_31000.depot => Good enough!!

#cp PHSS_31000.depot /tmp/patch
#swinstall -s /tmp/patch/PHSS_31000.depot

Those are the dependencies of this PHSS_31000.depot
PHCO_31923 libc cumulative header file patch
PHCO_35743 libc cumulative patch
PHKL_34805 JFS3.3 patch; mmap
PHSS_35711 X/Motif Runtime Periodic Patch


WK
ps: please assign points
Problem never ends, you must know how to fix it
Redhat
Trusted Contributor

Re: installing patches from extracted depot

As already told use the following procedure:-
mkdir /tmp/patches
cd /tmp/patches

Move the shar depot file here.

unshar it by sh PHSS_31000*

it will create two file (the depot and txt file)

then
#swinstall -s /tmp/patches/PHSS_31000.depot \*