LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-19-2008, 04:32 PM   #1
Ace Blackwell
Member
 
Registered: Mar 2004
Location: Kentucky, USA
Distribution: SlamD 12.1 / Slack 12.0 ~ 14.2_64
Posts: 307

Rep: Reputation: 41
Patch


All,

I am trying to apply a patch to various files in a installation. But... I'm just not getting the big picture on this. how can I get the path to patch to specific files, if I don't know what files the patch was meant for. And even if I did, I would have to "original file" them all separately. So I end up with hunks not installing and getting errors. So in short, how do I use a patch command. I want to have the command look in a directory for the needed files and start applying the path to those files.

thanks in advance
Ace
 
Old 04-19-2008, 08:21 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,910
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
The patch command appears to be one you can use to build patches of your own so the implication is that you would already know the path. I found it on my Fedora system but hadn't used it before.

I suspect what you're trying to do is to update existing packages and for most distros that is NOT done with the "patch" command. For Debian based distros it is usually apt or one of its derivatives or variations (e.g. aptitude). For RedHat based distros (including Fedora and CentOS) the package manager is rpm with enhanced tool called yum. Suse Linux has yet another tool whose name escapes me at the moment.

I haven't used mint linux but according to its web site it is derived from Ubuntu which in turn is derived from Debian so you likely need to use apt, aptitude, dpkg or one of those. You can get more information on them by typing "man <command>" at command line.
 
  


Reply


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
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 03:45 PM
How do i patch 2.4.21-37 kernel with antidote2 security patch suchi Linux - Kernel 4 09-05-2006 02:29 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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