Operating System - HP-UX
1823920 Members
3205 Online
109667 Solutions
New Discussion юеВ

patch downloaded is always txt file

 
SOLVED
Go to solution
kenken_3
Regular Advisor

patch downloaded is always txt file

Hi There,

I try to download patch PHSS_34991, but it is always a txt file. I tried a few time and it is always the same.

Anyone has encountered the same problem?

thanks,
wang & wang
6 REPLIES 6
Marco A.
Esteemed Contributor
Solution

Re: patch downloaded is always txt file

Good morning Kenken,

This is a normal behavior for too many patches, what you need to do is save the page in txt, then move the file to the server and run the following commands.

Let's say that the file name is patch.txt

# cd /tmp

# dos2ux patch.txt > patch2.txt
(dos2ux basically re-format the file in case or 'weird' characters from the Windows)

Then , execute the file (That in fact is a script)
# sh patch2.txt
#

This is going to create a couple of files .depot and .text , after this you can continue with the normal installation using the swinstall command

Let us know your results,

Best regards,

Marco,
Just unplug and plug in again ....
Steven E. Protter
Exalted Contributor

Re: patch downloaded is always txt file

Shalom,

A much better way to do this is to do the scripted ftp download option. This downloads the patches to a directory, checks the size and can be left to run unattended overnight for big downloads.

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
Sajjad Sahir
Honored Contributor

Re: patch downloaded is always txt file

dear goto website select patch then down load
it in u windows server
do ftp
and do binary
and put in one of u directory
create_depot
then install patch
ok
Bob E Campbell
Honored Contributor

Re: patch downloaded is always txt file

My biased recommendation is to use SWA for all downloads. In this example:

1. Install SWA (https://www.hp.com/go/swa)

2. # swa report -a CHAIN=PHSS_34991

3. # swa get -t /myDepot

4. Review /myDepot/readBeforeInstall.txt
Andrew Rutter
Honored Contributor

Re: patch downloaded is always txt file

hi,

sounds like your downloading on a windows box?

if so make sure you change the file type to all files and then when its downloaded just rename it, or remove the ..txt

it will then be un unknown type file but you can then simply ftp it to your unix server.

or let us know how your downloading it and we can maybe throw a few more suggestions your way

Andy
kenken_3
Regular Advisor

Re: patch downloaded is always txt file

Dear all,

Thank you all. I have tried the method you suggested, it works.

Thank you.
wang & wang