Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to extract .gz patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
StaraDama
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 253

PostPosted: Sat Sep 25, 2004 9:02 am    Post subject: how to extract .gz patch Reply with quote

i have this patch patch-2.6.8.1-lsd5.gz and i don't know how to extract it.

Thnx
Back to top
View user's profile Send private message
cylgalad
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1327
Location: France

PostPosted: Sat Sep 25, 2004 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sat Sep 25, 2004 9:45 am    Post subject: Reply with quote

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
View user's profile Send private message
senzacionale
Guru
Guru


Joined: 29 Jun 2004
Posts: 532
Location: Slovenia

PostPosted: Sat Sep 25, 2004 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message
c0balt
Guru
Guru


Joined: 04 Jul 2004
Posts: 441
Location: Germany

PostPosted: Sat Sep 25, 2004 10:55 am    Post subject: Reply with quote

ive found that
patch -p1 < gzcat PATCH
sometimes doesnt work

Using:
gzcat/bzcat2 PATCH | patch -p1
since then, works always
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum