LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 12-20-2005, 06:30 AM   #1
garbo73
Member
 
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
fouldsy
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:
Code:
patch -p1 < name.patch
 
Old 12-20-2005, 06:53 AM   #3
garbo73
Member
 
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? :

http://www.linuxfromscratch.org/patc...curity-1.patch

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 08:25 AM.

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