Results 1 to 3 of 3

Thread: how to install .patch file?

  1. #1
    Join Date
    May 2009
    Ubuntu Development Release

    how to install .patch file?

    Hi I have a program that has a patch that will add functionality to said program that I would like. After googling a little I find that all the answers are related to .diff files. This is a .patch. How to I patch this program.

    Thanks in advanced
    Echo "Your thoughts" > /dev/null

  2. #2
    Join Date
    Dec 2010

    Thumbs up Re: how to install .patch file?

    I had a file that needed to be patched as well. I un-tared the source into a directory then moved the .patch file into that directory too. Then I ran the following commands in the terminal:

    $sudo -s

    cd into the directory that you have all your files including the patch

    your-directory#patch -p1 < xxxxxxxxx.patch

    where xxxxxxxxx is the name of your patch file

    your-directory#make install

    Hope this helps or at least makes some one else's google search shorter.

  3. #3
    Join Date
    Jan 2009
    Toronto, Canada
    Ubuntu 10.04 Lucid Lynx

    Re: how to install .patch file?

    Note however that patch files work only with source files. You can not patch a binary file.


Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts