LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-19-2005, 06:37 PM   #1
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Rep: Reputation: 0
Which patch rpm to use?


I just installed Fedora Core 3. I figured I would learn how to compile the kernel. In the process I found these patches at rpmfind.net

patch-2.5.4-20.src.rpm
patch-2.5.4-20.x86_64.rpm
patch-2.5.4-20.i386.rpm

I'm wondering which one to use. Can I use the 'patch' command on the source patch? what should the rpm command look like,maybe 'rpm -ivh patch-2.5.4-20.src.rpm'?
 
Old 02-19-2005, 06:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i don't think there's a chance that you won't already have patch installed, it'd be the i386 one though, as src = source, and i64 = 64bit.

you won't need to manually use patch at all during a simple kernel recompile though.
 
Old 02-19-2005, 06:50 PM   #3
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
patch files

Ok, Maybe I wouldn't need these particular patches.

I am curious about how I use different types of patches if I need to, say src.rpm vs rpm. can i just use 'rpm -ivh <patch>' to install the .src.rpm then use 'patch' to install the patch? Or, do I need to install the rpm then compile the patch?

Thanks,
Barry
 
Old 02-19-2005, 07:14 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, i think you're getting confused now.

what you've found is "patch" the program not, "a patch" for something. when you apply a patch to something you use the patch command to overlay a small (or sometimes large...) piece of code onto an existing set of source code. you then compile that source, and the results of the details in the patch are part of the program. well that's for compiled code... and you can patch otehr things too... but it has nothing whatsoever to do with rpm package management, that's simply where the app itself comes from.
 
Old 02-19-2005, 07:23 PM   #5
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks,

But I think the problem was that I did not express myself well enough. I understand about rpm. What I don't understand is the whole patch process, except that I know that it is used to replace code the kernel compiles. I know that once you have a patch you use the patch facility to apply it. But I don't understand the difference between a .src vs .i386.
 
Old 02-19-2005, 07:26 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well these two areas are totally and utterly unrelated.... src = source code like i said above, i386 = code recompiled to run on all intel 386 compatible hardware (including Pentium 4's and Athlon XP's)
 
Old 02-19-2005, 08:16 PM   #7
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks again, I'm sorry I'm not explaining very well what I am trying to understand. I knew that .src is source code before I asked my question. I knew that rpm is the redhat package management facility. I have also written some of my own programs so I'm familiar with compiling code. I'm trying to get a more in depth understanding of patches and how this process works.

In a patch downlod like the downloads above:
What are the cases when I might use .src? In that case how would I use it instead of the i386 patch? Can you just apply that patch after the rpm is installed or will it be applied by default when rpm is run? I'm not sure I am phrasing this correctly.

Thanks for your patience.
 
Old 02-19-2005, 08:23 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, still getting mixed up.... you're either talking about rpm's, or you're talking about patching... which is it? got to pick one or the other...
 
Old 02-19-2005, 09:21 PM   #9
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Patches are my focus. I think the reason you are confused about my question is that I am not sure if rpm when it installs the rpm gives me the .patch file, or I need to do other steps to get the .patch file.

Ok lets try to simplify this...
Say I find a patch, ex. patch-x.src.rpm. I download this patch and run rpm -ivh patch-x.src.rpm.
Now here is where I am not sure how things work. What to do to apply this patch? Will this patch be applied in a form that I can apply or is there another step I will have to take before using the facility 'patch'?

Keep in mind I already have read the documentation on applying patches. I'm just trying to get a deeper understanding.

Thanks again for your patience.
 
Old 02-19-2005, 09:26 PM   #10
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry I didn't get that message quite right let me try again.

Instead of "Will this patch be applied in a form that I can apply or is there another step I will have to take before using the facility 'patch'?" I meant "will this patch be INSTALLED in a form I can apply or is there another step I will have to take to apply it?"
 
Old 02-21-2005, 06:27 PM   #11
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Quote:
Ok lets try to simplify this...
Say I find a patch, ex. patch-x.src.rpm. I download this patch and run rpm -ivh patch-x.src.rpm.
Now here is where I am not sure how things work. What to do to apply this patch?
It is a program package, not a patch. Please re-read the previous replies. You downloaded the program called "patch" in an RPM package form. It is included in Fedora Core. No need to download it.

On the contrary, patch files are something different. They are created with the "diff" program and applied with the "patch" program.
 
Old 02-21-2005, 08:12 PM   #12
bvknapp
LQ Newbie
 
Registered: Feb 2005
Location: MT, USA
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
I C... Duh, so this is the source for the program 'patch'. Now I think I understand.

Thanks for your patience.
 
  


Reply



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
How to build a patch installer with rpm? zhouxjgester Linux - Software 2 09-12-2005 08:42 AM
Building a kernel RPM with applying a patch barisdemiray Programming 1 08-04-2004 06:50 AM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM
How to map Red Hat RPM patch level => software version? sancho5 Linux - Software 2 09-20-2003 02:55 PM
RPM Rollback (Patch installation) adme Linux - General 3 04-15-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:47 PM.

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