Kdiff3 is the most used diff/merge tool. It has been there for many years, but it does not come listed in some of the software repositories for Ubuntu (Some versions ).
Following are the list of commands that we will use:
wget -Okdiff3.tar.gz https://sourceforge.net/projects/kdiff3/files/latest/download
tar -xzf kdiff3.tar.gz
sudo apt-get install libqt4-dev
cd kdiff3-[replace the untarred dir name]
sudo make install
That’s it, now you can open it from terminal with the following command.
Following is detailed step by step process for the same. In case above procedure didn’t work try downloading the older stable version (in my case it was 0.9.96 when I installed).
To install kdiff3 on any versions of Ubuntu where you can’t find it in Synaptic Package Manager, just follow the instructions below:
- Download the Kdiff3 tar file from the Sourceforge repositories here.
- Then extract the tar file using the following command.
$ tar -xzf kdiff3-0.9.98.tar.gz
- Now we need to make sure we have QT4 installed, before configuring kdiff3. Enter the following comand at the terminal to install qt4.
$ sudo apt-get install libqt4-dev
- Now go into the src-QT4 inside previously extracted and follow below command to compile it and install
$ cd kdiff3-0.9.98/src-QT4
$ qmake kdiff3.pro
$ make install
Now you should be able to use kdiff3 by just typing it at the command line (terminal):