How To Install fig2dev on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 407 words
Introduction
In this tutorial we learn how to install fig2dev
on Ubuntu.
What is fig2dev
fig2dev is:
This package contains utilities (mainly fig2dev) to handle XFig (Facility for Interactive Generation of figures) files.
It can convert files produced by xfig to box, cgm, dxf, epic, eepic, eepicemu, emf, eps, gbx (Gerber beta driver), gif, ibmgl, jpeg, latex, map (HTML image map), mf (MetaFont), mp (MetaPost), pcx, pdf, pdftex, pdftex_t, pic, pict2e, pictex, png, ppm, ps, pstex, pstex_t, pstricks, ptk (Perl/Tk), shape (LaTeX shaped paragraphs), sld (AutoCad slide format), svg, textyl, tiff, tikz, tk (Tcl/Tk), tpic, xbm and xpm.
There are three methods to install fig2dev
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install fig2dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install fig2dev
using apt-get
by running the following command:
sudo apt-get -y install fig2dev
Install fig2dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install fig2dev
using apt
by running the following command:
sudo apt -y install fig2dev
Install fig2dev 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 fig2dev
using aptitude
by running the following command:
sudo aptitude -y install fig2dev
How To Uninstall fig2dev on Ubuntu
To uninstall only the fig2dev
package we can use the following command:
sudo apt-get remove fig2dev
Uninstall fig2dev And Its Dependencies
To uninstall fig2dev
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove fig2dev
Remove fig2dev Configurations and Data
To remove fig2dev
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge fig2dev
Remove fig2dev configuration, data, and all of its dependencies
We can use the following command to remove fig2dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge fig2dev
Dependencies
fig2dev have the following dependencies:
References
Summary
In this tutorial we learn how to install fig2dev
package on Ubuntu using different package management tools: apt, apt-get and aptitude.