Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-20-2005, 06:30 AM   #1
Registered: Sep 2003
Posts: 59

Rep: Reputation: 15
How to download Patches

I am using FC4. When I try to go to a webpage to download a patch file, it just shows the code for the patch file. How do I save it as a .patch so that I can use the patch? Not sure if it's another program needed to make it work right so it downloads off of the page, or if it goes into a text editor and then I save it as a .patch file.
Old 12-20-2005, 06:43 AM   #2
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
That's quite correct, a patch is just a text file containing the adjustments to be made to the code. What exactly is it you're trying to patch? Usually instructions for the patch should be available on the same site, but the usual method is changing into the directory where the patch should be applied (i.e. the same directory as the original source code) and then:
patch -p1 < name.patch
Old 12-20-2005, 06:53 AM   #3
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
I was playing around with LFS to learn more about how things work, part of the instructions is patching files you download. So are you saying that all I do is open the page with the new code and run the patch as directed above, I would think the code would need to be in the folder somewhere wouldn't it? If that's the case how do I get the file itself into the folder? Here is an example of a patch file they give, what do I do with it? :

Last edited by garbo73; 12-20-2005 at 07:08 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fast Download Site for Linux, enables >4GB Download of single file TigerLinux Linux - Distributions 9 10-29-2005 12:45 PM
How to download security patches for 10.0? eje4 Linux - Security 1 08-11-2005 08:59 PM
Restricting Download based on total download using Squid,SARG& Webmin jomy Linux - Networking 0 04-27-2005 06:04 AM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM
hdd-related download problem(upload 4-5MB/s, download ~1MB/s) tine Linux - Hardware 4 09-15-2004 03:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration