Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 15
Applying Software Patches.


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:-

The patch is called:-

Can anyone advise me on how to apply this?

Many Thanks,

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

Rep: Reputation: 61
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.

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

Original Poster
Rep: Reputation: 15

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

and I got the following :-

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,

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

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



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 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 10:00 AM
Applying patches. landfill Linux - Software 7 09-11-2005 06:05 PM
Order of applying patches Steve1445 Linux - Newbie 4 01-12-2004 11:10 AM
applying software patches yocompia Slackware 4 07-29-2003 08:36 PM
Applying Patches to Solaris 8 desbyleo Solaris / OpenSolaris 2 02-06-2003 04:37 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:22 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