在Linux系统上有时会需要进行文件比较与合并,Meld能提供相关功能。
http://meldmerge.org/ http://meldmerge.org/help/
Meld Visual diff and merge tool
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.
Meld helps you review code changes and understand patches. It might even help you to figure out what’s going on in that merge you keep avoiding.
Version control
- Supports Git, Mercurial, Bazaar and Subversion
- Check your changes, commit and push easily
- View and manage version control states
- Tool integration with e.g., git mergetool

File comparison
- Compare, edit and merge files using live comparison updates
- Navigate between changes and operate on change blocks
- Simple text filtering for ignoring irrelevant differences
- Three-way merge assistance with conflict handling and base version display

Folder comparison
- Identify and manage missing or modified files across folders
- Drill down into a file comparison for a detailed view of differences
- Ignore certain files or folders for more useful comparisons

Others
-
Resources Project page https://gitlab.gnome.org/GNOME/meld Source view https://gitlab.gnome.org/GNOME/meld/tree/main Issue tracker https://gitlab.gnome.org/GNOME/meld/issues Discussion https://discourse.gnome.org/tag/meld Translations https://l10n.gnome.org/module/meld/
-
Project details License: GPLv2 or later, except as noted Primary authors: Kai Willadsen, Stephen Kennedy, Vincent Legoll
Developing
You can run Meld directly from your git clone, without installing:
$ git clone https://gitlab.gnome.org/GNOME/meld.git
$ bin/meld
在Ubuntu 22.04 x64映像的虚拟机中没有自带meld
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install meld
$ meld
本文修订依据:Canonical 官方 Ubuntu 22.04.5 LTS 发布页(核验日期 2026-09-25),页面将发行版名称与版本、64-bit PC (AMD64) 映像分别书写。本文仅为 Ubuntu、22.04 与 x64 标签补出词间空格;未推断文章的 22.04 点版本,也未改动 x64、Meld 安装命令或行为说明。
AI 修改声明: 本文由 LLM 协助修订,最近修改时间:2026-09-25 16:31(UTC+08:00)。修订仅调整 Ubuntu 版本与架构标签的词间空格。