LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-19-2008, 03:54 AM   #1
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Rep: Reputation: 15
Applying Software Patches.


Hello,

I downloaded the source for phpwiki and noticed that a patch file was available in the download area claiming to fix various issues.

I am aware of the 'patch' command in Linux, however this patch file offers no instructions so I am unsure how to actually apply it. I have both the source and patch in a directory and can access them.

Searches on the net seem to bring up guides on Kernel patching which is not what I am looking for.

The code directory is called:-
phpwiki-1.3.14

The patch is called:-
phpwiki-1.3.13p1-1.3.14.patch

Can anyone advise me on how to apply this?

Many Thanks,


Max.
 
Old 06-19-2008, 03:58 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
patch -p0 < phpwiki-1.3.13p1-1.3.14.patch

You may have to change directories into the phpwiki directory. You may have to change the -p0 (which strips of leading path components from the directories indicated in the patch file), depending upon how the patch was made. It might be -p1, or -p2, but is usually just -p0.

MrC
 
Old 06-19-2008, 06:16 AM   #3
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks,

I tried running patch < phpwiki-1.3.13p1-1.3.14.patch

and I got the following :-

Code:
patching file TODO
Reversed (or previously applied) patch detected!  Assume -R? [n]
Does this mean that the patch is not needed for this version and perhaps applies to an older version of the code?

Thanks Again,


Max.
 
Old 06-19-2008, 06:28 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
More than probably, if it says the same for all the files.
 
  


Reply

Tags
patches



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying patches to programs Grife Linux - Newbie 6 05-06-2007 09:00 AM
Applying patches. landfill Linux - Software 7 09-11-2005 05:05 PM
Order of applying patches Steve1445 Linux - Newbie 4 01-12-2004 10:10 AM
applying software patches yocompia Slackware 4 07-29-2003 07:36 PM
Applying Patches to Solaris 8 desbyleo Solaris / OpenSolaris 2 02-06-2003 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration