View previous topic :: View next topic |
Author |
Message |
StaraDama Apprentice

Joined: 01 Sep 2004 Posts: 253
|
Posted: Sat Sep 25, 2004 9:02 am Post subject: how to extract .gz patch |
|
|
i have this patch patch-2.6.8.1-lsd5.gz and i don't know how to extract it.
Thnx |
|
Back to top |
|
 |
cylgalad Veteran

Joined: 18 Apr 2003 Posts: 1327 Location: France
|
Posted: Sat Sep 25, 2004 9:26 am Post subject: |
|
|
Code: | gunzip patch-2.6.8.1-lsd5.gz |
That will turn the compressed patch-2.6.8.1-lsd5.gz into uncompressed patch-2.6.8.1-lsd5 |
|
Back to top |
|
 |
TheCoop Veteran


Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Sat Sep 25, 2004 9:45 am Post subject: |
|
|
or you could just run:
Code: | patch -p1 < `gzcat patch-2.6.8.1-lsd5.gz` |
(i think its something like that) to have it patched directly from the .gz file _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
 |
senzacionale Guru


Joined: 29 Jun 2004 Posts: 532 Location: Slovenia
|
Posted: Sat Sep 25, 2004 10:13 am Post subject: |
|
|
yes exactly as you said
First, download a patch from somewhere, and move it to the /usr/src/linux directory (make sure /usr/src/linux links to the kernel you want to use). Now enter the /usr/src/linux directory:
cd /usr/src/linux
Extract the patch into the /usr/src/linux directory using your tool of choice.
There should now be a file called something like patch-2.x.x or patch-2.x.x-yy (where x stands for a version number, and yy stands for the initials of the patch or patchset, such as aa or ck) in the /usr/src/linux directory. To apply the patch to the kernel, run:
patch -p1 < patch-2.x.x
or
patch -p1 < patch-2.x.x-yy
SO IN SHORT WAY
cd /usr/src/linux
wget path
gunzip patch-2.6.8.1-lsd5.gz
patch -p1 < patch-2.x.x
or
patch -p1 < patch-2.x.x-yy _________________ Spletno narocanje hrane in dostava hrane na dom na portalu DostavaHrane.si |
|
Back to top |
|
 |
c0balt Guru


Joined: 04 Jul 2004 Posts: 441 Location: Germany
|
Posted: Sat Sep 25, 2004 10:55 am Post subject: |
|
|
ive found that
patch -p1 < gzcat PATCH
sometimes doesnt work
Using:
gzcat/bzcat2 PATCH | patch -p1
since then, works always |
|
Back to top |
|
 |
|