xdot command not found

In this troubleshooting guide we learn how to fix xdot command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xdot: command not found

or when using sudo you get the following error message

sudo: xdot: command not found

Solutions to xdot: command not found

How To Fix xdot: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xdot is provided by xdot package.

xdot is:

xdot is an interactive viewer for graphs written in Graphviz’s dot language. It uses internally the graphviz’s xdot output format as an intermediate format, and PyGTK and Cairo for rendering. xdot can be used either as a standalone application from command line, or as a library embedded in your Python 3 application.

Features:

  • Since it doesn’t use bitmaps it is fast and has a small memory footprint.
  • Arbitrary zoom.
  • Keyboard/mouse navigation.
  • Supports events on the nodes with URLs.
  • Animated jumping between nodes.
  • Highlights node/edge under mouse.

To fix this problem, we can install more using the command below.

sudo apt-get -y install xdot

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install xdot.

sudo apt -y install xdot

Or if you have aptitude installed you can use the following command.

sudo aptitude install xdot

Summary

In this tutorial we learn how to fix xdot command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.