How To Install imediff2 on Debian 10

Learn how to install imediff2 on Debian 10 with this tutorial. imediff2 is interactive full screen 2-way merge tool

Introduction

In this tutorial we learn how to install imediff2 on Debian 10.

What is imediff2

imediff2 is:

This is a dummy transitional package that provides symlinks from imediff2 to imediff. It may be safely removed.

Imediff2 lets you merge two (slightly different) files interactively with a user friendly full screen interface on a text terminal. In other words, it is an ncurses based replacement for sdiff.

The program shows the differences of given files (in color if the terminal supports them), lets you scroll up and down and toggle changes between the old and new versions of the differing hunks one by one.

Unlike split screen based merge tools, it shows only one, partially merged, version of the file at a time, making it more “WYSIWYG”, perhaps more intuitive for beginners and most importantly, suitable for narrow terminals.

This also comes with git-ime wrapper script to use imediff2 with git VCS.

There are three methods to install imediff2 on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install imediff2 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install imediff2 using apt-get by running the following command:

sudo apt-get -y install imediff2

Install imediff2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install imediff2 using apt by running the following command:

sudo apt -y install imediff2

Install imediff2 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install imediff2 using aptitude by running the following command:

sudo aptitude -y install imediff2

How To Uninstall imediff2 on Debian 10

To uninstall only the imediff2 package we can use the following command:

sudo apt-get remove imediff2

Uninstall imediff2 And Its Dependencies

To uninstall imediff2 and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove imediff2

Remove imediff2 Configurations and Data

To remove imediff2 configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge imediff2

Remove imediff2 configuration, data, and all of its dependencies

We can use the following command to remove imediff2 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge imediff2

Dependencies

imediff2 have the following dependencies:

References

Summary

In this tutorial we learn how to install imediff2 package on Debian 10 using different package management tools: apt, apt-get and aptitude.