Jump to content
  • 0

Q> patching patch in linux


GM Takumirai

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...