usvg command not found

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

Introduction

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

usvg: command not found

or when using sudo you get the following error message

sudo: usvg: command not found

Solutions to usvg: command not found

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

In Ubuntu usvg is provided by usvg package.

usvg is:

usvg is a command-line utility to simplify SVG files based on a static SVG Full 1.1 subset. It converts an input SVG to an extremely simple representation, which is still a valid SVG:

  • No basic shapes (rect, circle, etc), only paths
  • Only simple paths
  • All supported attributes are resolved
  • Invisible elements are removed
  • Comments will be removed
  • DTD will be resolved
  • CSS will be resolved

and so on.

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

sudo apt-get -y install usvg

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

You can also use apt command to install usvg.

sudo apt -y install usvg

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

sudo aptitude install usvg

Summary

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