How to install Meld on Ubuntu 17.04

How to install Meld on Ubuntu 17.04

Meld is the visual diff and merge tool of GNOME targeted for developers. It allows the users to compare two or three files of directories visually, color-coding the different lines. It also compares files, directories, and version controlled repositories. This tutorial covers the installation process of meld on Ubuntu 17.04.

Installation procedure

To start the installation procedure, add the repo by executing the following command.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:imported: 1
OK

The repositories are added to the target system. Update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

The package has been successfully installed. Install the meld package by executing the following command and press y to continue with the installation procedure.

root@linuxhelp1:~# apt-get install meld -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python-cairo python-gi python-gi-cairo
The following NEW packages will be installed:
meld python-cairo python-gi python-gi-cairo
0 upgraded, 4 newly installed, 0 to remove and 92 not upgraded.
Need to get 728 kB of archives.
After this operation, 4,028 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 python-gi amd64 3.22.0-2 [194 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 python-cairo amd64 1.8.8-2.1 [41.3 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 python-gi-cairo amd64 3.22.0-2 [6,254 B]
Get:4 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 meld all 3.16.4-1 [486 kB]
Fetched 728 kB in 4s (155 kB/s)
Selecting previously unselected package python-gi.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../python-gi_3.22.0-2_amd64.deb ...
Unpacking python-gi (3.22.0-2) ...
Selecting previously unselected package python-cairo.
Preparing to unpack .../python-cairo_1.8.8-2.1_amd64.deb ...
Unpacking python-cairo (1.8.8-2.1) ...
Selecting previously unselected package python-gi-cairo.
Preparing to unpack .../python-gi-cairo_3.22.0-2_amd64.deb ...
Unpacking python-gi-cairo (3.22.0-2) ...
Selecting previously unselected package meld.
Preparing to unpack .../archives/meld_3.16.4-1_all.deb ...
Unpacking meld (3.16.4-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for libglib2.0-0:amd64 (2.52.0-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up python-gi (3.22.0-2) ...
Setting up python-cairo (1.8.8-2.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up python-gi-cairo (3.22.0-2) ...
Setting up meld (3.16.4-1) ...

The meld application is successfully installed. To open the application, type the package name in the ubuntu dashboard and click on the icon to run the application.

The meld application provides two and three way comparison of both files and directories and supports many version control systems.

For removing the package, execute the following remove command and press y to continue with the uninstallation process.

root@linuxhelp1:~# apt-get remove meld -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-cairo python-gi python-gi-cairo
Use ' apt autoremove'  to remove them.
The following packages will be REMOVED:
meld
0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
After this operation, 3,122 kB disk space will be freed.
(Reading database ... 169158 files and directories currently installed.)
Removing meld (3.16.4-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for libglib2.0-0:amd64 (2.52.0-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...

Wasn' t that an easy installation procedure? Meld supports many version control systems including Git, Mercurial, Baazar, CVS and Subversion.

Tag : Ubuntu diff
FAQ
Q
is med easily to get visualized?
A
Visualisations make it easier to compare your files
Q
What is the requirements of the Meld?
A
Requirements

Python 3.3
GTK+ 3.14
GLib 2.36
PyGObject 3.14
Q
What is Meld in Ubuntu?
A
Meld is a visual diff and merge tool targeted at developers. Meld helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems.
Q
What is the main features of Meld?
A
Features

Two- and three-way comparison of files and directories
File comparisons update as you type
Auto-merge mode and actions on change blocks help make merges easier
Q
What are the similar tools like med?
A
Here I have to give some of the alternative for med

"Beyond Compare, kdiff3, Diffuse, P4Merge, DiffMerge".