How To Install Diff3 On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Diff3 On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

diff3

Compare three files line by line.

Maintainer: Santiago Vila



Section: utils

Install diff3

  • Debian apt-get install diffutils Click to copy
  • Ubuntu apt-get install diffutils Click to copy
  • Alpine OS apk add diffutils Click to copy
  • Arch Linux pacman -S diffutils Click to copy
  • Kali Linux apt-get install diffutils Click to copy
  • CentOS yum install diffutils Click to copy
  • Fedora dnf install diffutils Click to copy
  • Raspbian apt-get install diffutils Click to copy
  • macOS brew install diffutils Click to copy

Compare three files line by line.

How to use diff3?

Below are few example commands for diff3 that you can use in the terminal.

Compare files:
diff3 file1 file2 file3Click to copy
Show all changes, outlining conflicts:
diff3 --show-all file1 file2 file3Click to copy
Installing diff3 command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of diff3 2026 package in your OS.