rugmentize command not found

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

Introduction

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

rugmentize: command not found

or when using sudo you get the following error message

sudo: rugmentize: command not found

Solutions to rugmentize: command not found

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

In Ubuntu rugmentize is provided by ruby-rugments package.

ruby-rugments is:

Rugments is a pure-ruby syntax highlighter. It can highlight over 60 languages, and output HTML or ANSI 256-color text. Its HTML output is compatible with stylesheets designed for pygments.

It aims to a be a simple, easy-to-extend drop-in replacement for pygments.

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

sudo apt-get -y install ruby-rugments

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

You can also use apt command to install ruby-rugments.

sudo apt -y install ruby-rugments

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

sudo aptitude install ruby-rugments

Summary

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