cssmin command not found

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

Introduction

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

cssmin: command not found

or when using sudo you get the following error message

sudo: cssmin: command not found

Solutions to cssmin: command not found

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

In Ubuntu cssmin is provided by cssmin package.

cssmin is:

cssmin is a Python port of the YUI Cascading Style Sheet (CSS) compressor. The compressor can be used to reduce the size of CSS documents for deployment.

This package contains the command line tools for cssmin. See the python-cssmin and python3-cssmin packages for the Python modules.

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

sudo apt-get -y install cssmin

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

You can also use apt command to install cssmin.

sudo apt -y install cssmin

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

sudo aptitude install cssmin

Summary

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