How To Install ruby-svg-graph on Ubuntu 22.04
Introduction
In this tutorial we learn how to install ruby-svg-graph
on Ubuntu 22.04.
What is ruby-svg-graph
ruby-svg-graph is:
SVG::Graph allows one to generate charts, that is, graphs where the values of one axis are not scalar. It has a very similar API to the Perl library SVG::TT::Graph, and the resulting charts also look the same. This isn’t surprising, because SVG::Graph started as a loose port of SVG::TT::Graph, although the internal code no longer resembles the Perl original at all.
There are three methods to install ruby-svg-graph
on Ubuntu 22.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 ruby-svg-graph Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ruby-svg-graph
using apt-get
by running the following command:
sudo apt-get -y install ruby-svg-graph
Install ruby-svg-graph Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-svg-graph
using apt
by running the following command:
sudo apt -y install ruby-svg-graph
Install ruby-svg-graph 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 ruby-svg-graph
using aptitude
by running the following command:
sudo aptitude -y install ruby-svg-graph
How To Uninstall ruby-svg-graph on Ubuntu 22.04
To uninstall only the ruby-svg-graph
package we can use the following command:
sudo apt-get remove ruby-svg-graph
Uninstall ruby-svg-graph And Its Dependencies
To uninstall ruby-svg-graph
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove ruby-svg-graph
Remove ruby-svg-graph Configurations and Data
To remove ruby-svg-graph
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge ruby-svg-graph
Remove ruby-svg-graph configuration, data, and all of its dependencies
We can use the following command to remove ruby-svg-graph
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-svg-graph
References
Summary
In this tutorial we learn how to install ruby-svg-graph
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.