cfdg command not found

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

Introduction

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

cfdg: command not found

or when using sudo you get the following error message

sudo: cfdg: command not found

Solutions to cfdg: command not found

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

In Ubuntu cfdg is provided by contextfree package.

contextfree is:

Context Free is a program that produces images based on context-free grammars. These grammars are sets of non-deterministic rules that determine what an image should look like. The resulting images often resemble a mix of spirograph drawings, fractals and abstract art.

Context Free can generate images with millions of shapes, in PNG (up to 100 megapixels) or SVG format. It can also produce animations. Many example images are included.

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

sudo apt-get -y install contextfree

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

You can also use apt command to install contextfree.

sudo apt -y install contextfree

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

sudo aptitude install contextfree

Summary

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