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

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

tsort

Perform a topological sort.
A common use is to show the dependency order of nodes in a directed acyclic graph.

Maintainer: Michael Stone



Section: utils

Install tsort

  • 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

Perform a topological sort. A common use is to show the dependency order of nodes in a directed acyclic graph.

How to use tsort?

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

Perform a topological sort consistent with a partial sort per line of input separated by blanks:
tsort fileClick to copy
To install the latest version of tsort in your favorite operating system just copy the tsort installation command from above and paste it into terminal. It will download and install the latest version of tsort 2026 package in your OS.