Operating System - HP-UX
1833325 Members
2683 Online
110051 Solutions
New Discussion

Individual Patch Downloads

 
SOLVED
Go to solution
Marie Eldridge_1
Occasional Contributor

Individual Patch Downloads

I'm doing something wrong when I try and download an individual patch (PHCO_22100). It opens the file and shows me a dotted line to cut all data above this line. When I save it to my PC, it saves it as an .htm file. When I FTP it from my hard drive to my HP-UX /tmp directory, I can't get the swinstall command to read the file. Any suggestions as to what I'm doing wrong? I really need to install this patch tomorrow. Thanks for your help.
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Individual Patch Downloads

Marie:

FTP the file from your PC to your UNIX server in BINARY mode. This is very important.

Then, on your server, do:

# cd /tmp
# shar PHCO_22100

This will yield two files PHCO_22100.depot and PHCO_22100.text.

Use swinstall to install /tmp/PHCO_22100.depot and all will be well.

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Individual Patch Downloads

Marie:

BTW, the tail end of the PHXX_nnnn.text file always contains installation instructions, some of which I described above. You can also see them on the WEB if you click on the patch description instead of just starting the download.

...JRF...
rajsri
Frequent Advisor

Re: Individual Patch Downloads

some times you will find cut here in the begining of the document also , so pls have a look at that .
and also follow below
ftp unix
bin
put XXXXXXXX
bye
on unix do

sh XXXXXXX
then u get text file and .depot file
do swinstall on .depot file .

good luck
raj
Andreas Voss
Honored Contributor
Solution

Re: Individual Patch Downloads

Hi,

First remove DOS-Carriage-returns:
dos2ux PHCO_22100
Now edit PHCO_22100 an remove from the top lines until the line
# This is a shell archive ....
stands at the top.
After saving you can extract the text and depot file with:
sh PHCO_22100
you get PHCO_22100.text and PHCO_22100.depot
Now you can install with swinstall -s /PHCO_22100.depot

Regards

Andrew
Mark Mitchell
Trusted Contributor

Re: Individual Patch Downloads

I don't like the cut and paste idea either, it opens up the posibility for problems. If you talk to HP you can get the address for ftp.hp.com ect.. and right click on the patch and do a save target as. With some patches you want to ascii it to your box and then un-shar it. Here is the error I get when I use binary on one of these. elm_1020.shar: ^M: not found.
elm_1020.shar[10]: ^M: not found.
elm_1020.shar[11]: LANG^M: This is not an identifier.
Hope it helps.

CHRIS_ANORUO
Honored Contributor

Re: Individual Patch Downloads

Hi Marie,

Just follow Andreas steps, but leave the bit of editing the file. Mark, the ^M character is removed with dos2ux command as Andres has pointed out.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
James R. Ferguson
Acclaimed Contributor

Re: Individual Patch Downloads

Marie:

I must have a dead neuron or two. In the steps below, I am doing the FTP in *ASCII* mode, *NOT* BINARY. Here's the way it works for me:

1. Select the patch from the ITRC using a PC browser (IE5).

2. Select download.

3. Click File -> Save As (when download done). I put the patch into my Windows TEMP directory. It saves it with the extension "htm". No matter.

4. I use Chameleon's FTP on my PC. I connect to my UNIX server; cd to /tmp; choose an ASCII transfer in Chameleon and put the file on the UNIX platform.

5. Use vi and CUT the top 6-lines off the patch. Save it. It's still named PHXX_nnnn.htm. No matter.

6. Un-shar the patch ( sh PHXX_nnnn.htm ).

7. Use swinstall with PHXX_nnnn.depot

Sorry for any confusion. Hope this helps you.

...JRF...
Marie Eldridge_1
Occasional Contributor

Re: Individual Patch Downloads

Thanks to all. Andreas, your resolution helped a lot. Those silly carriage returns were causing the problem. It worked like a charm!