Jump to content
  • 0

Q> patching patch in linux


Question

Posted (edited)

how could i patch a diff files using putty.exe

- do i need to login on WinCP to put the .diff files or .patch??..

what if i put it in cd /home/updates/patchfile

and my server files located at cd /home/ra

- how do i patch it?

i can't understand this part

Linux:

cd /path/to/your/server/folder

patch -p0 < /path/to/patch/file/filename.extension

cd /home/ra patch -p0 /home/updates/patchfile

- i did that in putty.exe but nothing happens

Edited by GM Takumirai

1 answer to this question

Recommended Posts

Posted

you forget the "<" wich in this case mean read.

so try

cd /home/ra && patch -p0 < /home/updates/patchfile

or just

patch -p0 /home/ra/myfiletarget /home/updates/patchfile

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...