How To Install scour on Ubuntu 20.04
Introduction
In this tutorial we learn how to install scour
on Ubuntu 20.04.
What is scour
scour is:
Scour is a Python module that aggressively cleans SVG files, removing a lot of unnecessary information that certain tools or authors embed into their documents. The goal of scour is to provide an identically rendered image (i.e. a scoured document should have no discernible visible differences from the original file) while minimizing the file size.
WARNING: Scour is intended to be run on files that have been edited in Vector Graphics editors such as Inkscape or Adobe Illustrator. Scour attempts to optimize the file, and as result, it will change the file’s structure and (possibly) its semantics. If you have hand-edited your SVG files, you will probably not be happy with the output of Scour.
This package provides the “scour” command line utility and a dh_scour debhelper extension which optimizes all shipped SVGs during package build. If gir1.2-rsvg-2.0 and python3-gi-cairo are available, it will also do a before/after comparison and discard the optimized image if they differ by more than 0.05%.
There are three methods to install scour
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install scour Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install scour
using apt-get
by running the following command:
sudo apt-get -y install scour
Install scour Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install scour
using apt
by running the following command:
sudo apt -y install scour
Install scour Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install scour
using aptitude
by running the following command:
sudo aptitude -y install scour
How To Uninstall scour on Ubuntu 20.04
To uninstall only the scour
package we can use the following command:
sudo apt-get remove scour
Uninstall scour And Its Dependencies
To uninstall scour
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove scour
Remove scour Configurations and Data
To remove scour
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge scour
Remove scour configuration, data, and all of its dependencies
We can use the following command to remove scour
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge scour
References
Summary
In this tutorial we learn how to install scour
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.