How To Install node-hosted-git-info on Ubuntu 18.04

In this tutorial we learn how to install node-hosted-git-info on Ubuntu 18.04. node-hosted-git-info is Provides metadata from Github, Bitbucket and Gitlab

Introduction

In this tutorial we learn how to install node-hosted-git-info on Ubuntu 18.04.

What is node-hosted-git-info

node-hosted-git-info is:

Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab

Node.js is an event-based server-side JavaScript engine.

There are three methods to install node-hosted-git-info 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 node-hosted-git-info Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install node-hosted-git-info using apt-get by running the following command:

sudo apt-get -y install node-hosted-git-info

Install node-hosted-git-info Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install node-hosted-git-info using apt by running the following command:

sudo apt -y install node-hosted-git-info

Install node-hosted-git-info 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 node-hosted-git-info using aptitude by running the following command:

sudo aptitude -y install node-hosted-git-info

How To Uninstall node-hosted-git-info on Ubuntu 18.04

To uninstall only the node-hosted-git-info package we can use the following command:

sudo apt-get remove node-hosted-git-info

Uninstall node-hosted-git-info And Its Dependencies

To uninstall node-hosted-git-info and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove node-hosted-git-info

Remove node-hosted-git-info Configurations and Data

To remove node-hosted-git-info configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge node-hosted-git-info

Remove node-hosted-git-info configuration, data, and all of its dependencies

We can use the following command to remove node-hosted-git-info configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge node-hosted-git-info

References

Summary

In this tutorial we learn how to install node-hosted-git-info package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.