Results 1 to 3 of 3

Thread: how to install .patch file?

  1. #1
    Join Date
    May 2009
    Beans
    103
    Distro
    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
    Beans
    3

    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
    your-directory#make install

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

  3. #3
    Join Date
    Jan 2009
    Location
    Toronto, Canada
    Beans
    214
    Distro
    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.

    /luigi

Tags for this Thread

Bookmarks

Posting Permissions

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