Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am using Mandriva and i have a problem with "patch". I would like to modify the content of 2 files : file1 and file2. that are my steps: ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    how to use a "patch" ..

    Hi,

    I am using Mandriva and i have a problem with "patch".
    I would like to modify the content of 2 files : file1 and file2.

    that are my steps:

    first :

    diff file1 file2 > file.patch

    cat file.patch #it puts the differences between this 2 files ont the screen

    patch < file.patch

    But I always receive an error message :
    bash: patch: command not found

    could you please help me?
    thank you

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    The "patch" tool is usually installed on almost all distros, but it seems that it's not on your system. Try installing it with urpmi.

Posting Permissions

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