Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A visual patch tool for Linux

I've got a file and a patch for it. I'd like to visually apply the patch, t.i. see how the changes proposed by the patch look in context, make some corrections, and save the resulting file.

What tool can do that?

Neither of the visual diff tools (i.e. meld, diffuse, diffmerge) do what I want: they don't work with patches, they merely merge whole files.

like image 228
Eugene Kirpichov Avatar asked Dec 10 '09 09:12

Eugene Kirpichov


People also ask

What are Linux patches called?

In Linux operating system, “patch” is a command that allows us to apply patch files to the source codes or configuration files. The patch file is used for software updating purposes. The difference between the original and new files is held in patch files and the “diff” command is used to get the difference or patch.

What is patch management in Linux?

Linux patch management is the process of managing patches for applications running on Linux computers. Managing patches in Linux involves scanning your Linux endpoints to detect missing patches, downloading patches from vendors' sites, and deploying them to the respective client machines.

How do I download a patch in Linux?

To install patches manually first log into the Patch Manager Plus console and then follow the steps given below: Click on the Deployment tab -> Manual Deployment. Select Install/Uninstall Patch and choose your desired platform (Windows /Mac /Linux). As you are going to install Red Hat Linux patches, select Linux.


1 Answers

I really like Kompare. It is just a (very nice) graphical interface for diff.

http://www.caffeinated.me.uk/kompare/

sudo apt-get install kompare

Creating and applying patches

Kompare is able to create a patch file which lists only the differences between two compared text files A and B. Further, Kompare can apply a patch file which was created this way to an original file A and, in this manner, recompute the contents of the corresponding file B. This is a comfortable utility for passing a corrected version of a file to a friend who already has an older version of the same file, because only the (relatively small) patch file has to be delivered and the receiver can generate the corrected file by applying the patch to the original file.

The patches created and applied by Kompare are compatible to patch files generated or applied by the command line interface diff utility, because Kompare is in fact merely a graphical front end to diff and the patches are created and applied by patch, which gets called by Kompare.

like image 57
initzero Avatar answered Oct 29 '22 12:10

initzero