Quickly apply a patch/diff easily without insight

Basically you do this:

cd foo-1.2/
zcat ../foo-1.2-1.diff.gz | patch -p1 --dry-run

If patch does not complain, remove --dry-run.

This solution comes from jelly of irc.freenode.net#debian after being asked for instructions on how to apply a patch without having to understand ones action.

The alternative was reading one of many tutorials, for example the Arch Linux Build System one. I tried understanding patches and diff files in the past but my only result was aching head and having to ask for guidance in the end.

Advertisements
This entry was posted in qubodup and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s