How To Install libwagon-java on Debian 9

In this tutorial we learn how to install libwagon-java on Debian 9. libwagon-java is tools to manage Maven artifacts and deployment

Introduction

In this tutorial we learn how to install libwagon-java on Debian 9.

What is libwagon-java

libwagon-java is:

The Wagon project defines a simple API for transferring resources (artifacts) to and from repositories. The word repository is used in this context as it is commonly used in Maven and means a storage of artifacts.

It is also used to deploy the Maven generated site to a server.

This package contains the following Jars:

wagon-file Implementation of Wagon provider for File system access. wagon-ftp Implementation of Wagon provider for FTP access. wagon-http Implementation of Wagon provider for HTTP access. wagon-http-lightweight Implementation of Wagon provider for HTTP access. It uses standard JDK classes as lower lever layer. It enables Maven to use remote repositories stored in HTTP servers. It doesn’t allow deployment. wagon-http-shared This package is a shared Library for the wagon-http, and wagon-http-lightweight wagon providers wagon-ssh Implementation of Wagon provider for SCP and SFTP access. It enables Maven to deploy artifacts and sites to SSH servers. It uses JSch (Java Secure Channel) as lower level layer. wagon-ssh-common Implementation of Wagon provider for SCP and SFTP access. It enables Maven to deploy artifacts and sites to SSH servers. Getting files from SSH servers is not fully tested. wagon-ssh-external Implementation of Wagon provider for SSH servers access. It enables Maven to deploy artifacts and sites to SSH servers. It uses an external SSH program that has to be already installed in the system. Getting files from SSH servers is not fully tested.

There are three methods to install libwagon-java on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libwagon-java Using apt-get

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

sudo apt-get update

After updating apt database, We can install libwagon-java using apt-get by running the following command:

sudo apt-get -y install libwagon-java

Install libwagon-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libwagon-java using apt by running the following command:

sudo apt -y install libwagon-java

Install libwagon-java 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libwagon-java using aptitude by running the following command:

sudo aptitude -y install libwagon-java

How To Uninstall libwagon-java on Debian 9

To uninstall only the libwagon-java package we can use the following command:

sudo apt-get remove libwagon-java

Uninstall libwagon-java And Its Dependencies

To uninstall libwagon-java and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libwagon-java

Remove libwagon-java Configurations and Data

To remove libwagon-java configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libwagon-java

Remove libwagon-java configuration, data, and all of its dependencies

We can use the following command to remove libwagon-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libwagon-java

Dependencies

libwagon-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libwagon-java package on Debian 9 using different package management tools: apt, apt-get and aptitude.