Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-06-2004, 01:44 PM   #1
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Rep: Reputation: 30
Patching Source Tuts?


I wanted to patch Squirrelmail 1.4.3a. I downloaded the patch but, I'm not sure what to do with it.

it starts off with this...

diff -urN functions/mime.php functions/mime.php

but, executing it fails.

I know that there is also a utility called 'patch'.

Does anyone know of a tutorial that breaks down how to use 'diff' or 'patch'

Old 12-06-2004, 04:20 PM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Typically what you do is place the patch file in the top level of the package you are patching, then do a:
# patch -p1 <patchname.patch
You should get output like "patching blah.file" etc


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
HOWTO:Patching new ALSA sources into kernel source for new sound cards detection? deepclutch Debian 1 07-17-2005 12:49 PM
Patching drivers with kernel source Eklipz Debian 1 12-12-2004 08:32 AM
Patching Kernel Source kmeehl Slackware 1 10-10-2004 10:05 PM
Upgrading and Patching: Packages or Source ?? destin Slackware 2 04-03-2004 08:02 AM
Tuts on installing/configuring Apache Web server! Jnox Linux - General 1 01-22-2002 09:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 AM.

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