How To Install tgif on Ubuntu 18.04
Introduction
In this tutorial we learn how to install tgif
on Ubuntu 18.04.
What is tgif
tgif is:
Tgif (originally the “Tangram Graphic Interface Facility”) is a classic drawing program for 2D vector graphics. Image objects can be hierarchically constructed out of primitives such as polygons, text, and splines (though the splines Tgif draws are not Bézier curves).
It natively supports PostScript formats suitable for LaTeX, as well as X11 bitmap or (version 1) pixmap formats. Other vector and raster image formats such as SVG and PNG can be handled via filters.
Tgif stores drawings as .obj files and individual building-block objects as .sym files, both in Prolog-compatible fact file format.
There are three methods to install tgif
on Ubuntu 18.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 tgif Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install tgif
using apt-get
by running the following command:
sudo apt-get -y install tgif
Install tgif Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install tgif
using apt
by running the following command:
sudo apt -y install tgif
Install tgif 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 tgif
using aptitude
by running the following command:
sudo aptitude -y install tgif
How To Uninstall tgif on Ubuntu 18.04
To uninstall only the tgif
package we can use the following command:
sudo apt-get remove tgif
Uninstall tgif And Its Dependencies
To uninstall tgif
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove tgif
Remove tgif Configurations and Data
To remove tgif
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge tgif
Remove tgif configuration, data, and all of its dependencies
We can use the following command to remove tgif
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge tgif
References
Summary
In this tutorial we learn how to install tgif
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.