Download your favorite Linux distribution at LQ ISO.
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 01-21-2009, 01:06 AM   #1
LQ Newbie
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
Unhappy How to Understand Linux Patches

I am studying linux patches for applying them to my system.In patch there are many lines like :-
Only in linux-2.6.10/crypto: api.o
Only in linux-2.6.10/crypto: .api.o.cmd

I don't understand what "Only in" means here and also what are .cmd files . I searched on google but didn't find meaning .
Can any one provide links to understand these things ?

Old 01-21-2009, 09:31 PM   #2
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Disclaimer: I've never studied a patch like you did.

The "Only in" looks like output from "diff -r" ( man diff). It does a recursive diff across two directories, say A and B. If both contain a plain file with the same name, say c, diff shows differences between A/c and B/c. If a file d only exists in one of the directories, diff reports, e.g., "Only in A: d".

A basic patch is typically produced by "diff" (i.e., it's saved output from "diff") and applied by "patch". This is very basic, and I don't think it would handle addition of new files (one case where you'd get "Only in") properly. I'm sure that Linux patches have much better ways for applying them, both more sophisticated and easier to use.


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
patches for a release version or slackware/slackware-ver.#/patches acummings Slackware 2 07-05-2007 02:05 AM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 04:18 AM
Applying patches in linux corbis_demon Linux - Newbie 7 08-15-2004 10:40 AM
Up2date patches for RH-Linux 9??? df.stealth Linux - Newbie 14 01-11-2004 07:08 PM
Linux Patches and Updates Dovid Red Hat 5 10-01-2003 04:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration