Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 272010

How to apply a patch?


In the last post, you know how to create a patch for two folders.

But, how to use the patch?

See below.

# cp -r foo dummy
# cd dummy
# patch -p1 -i ../bar.patch

Now the folder dummy is the same as bar.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>