How To Install Sum In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Sum In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

sum

Compute checksums and the number of blocks for a file.
A predecessor to the more modern `cksum`.

Maintainer: Michael Stone



Section: utils

Install sum

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

Compute checksums and the number of blocks for a file. A predecessor to the more modern `cksum`.

How to use sum?

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

Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
sum fileClick to copy
Compute a checksum with System V-compatible algorithm and 512-byte blocks:
sum --sysv fileClick to copy
Installation of latest sum command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.