How To Install fsgateway on Ubuntu 18.04
Introduction
In this tutorial we learn how to install fsgateway
on Ubuntu 18.04.
What is fsgateway
fsgateway is:
FsGateway allows you to use your preferred directory navigation tool to inspect a database’s metadata, sugar datastores and xml files.
It allows you to compare two database structures in an easy way using the diff tool, or to find where a field is defined using the grep tool.
At the moment it supports the following mode of operation:
tagfs: Rewrites a directory tree using directory names as tags
xmlfs: Map the structure of an xml file as a directory tree. It supports elements, attributes and texts. The resulting path of a node is similar to its XPath path.
sugar datastore: Access a sugar datastore as a normal filesystem.
databases: Access a database’s metadata as a directory tree. Drivers are available for PostgreSQL, MySql, Sqlite and SqlServer
There are three methods to install fsgateway
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 fsgateway Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install fsgateway
using apt-get
by running the following command:
sudo apt-get -y install fsgateway
Install fsgateway Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install fsgateway
using apt
by running the following command:
sudo apt -y install fsgateway
Install fsgateway 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 fsgateway
using aptitude
by running the following command:
sudo aptitude -y install fsgateway
How To Uninstall fsgateway on Ubuntu 18.04
To uninstall only the fsgateway
package we can use the following command:
sudo apt-get remove fsgateway
Uninstall fsgateway And Its Dependencies
To uninstall fsgateway
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove fsgateway
Remove fsgateway Configurations and Data
To remove fsgateway
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge fsgateway
Remove fsgateway configuration, data, and all of its dependencies
We can use the following command to remove fsgateway
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge fsgateway
References
Summary
In this tutorial we learn how to install fsgateway
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.