How To Install libyaml-snake-java on Debian 11

In this tutorial we learn how to install libyaml-snake-java on Debian 11. libyaml-snake-java is YAML parser and emitter for the Java programming language

Introduction

In this tutorial we learn how to install libyaml-snake-java on Debian 11.

What is libyaml-snake-java

libyaml-snake-java is:

SnakeYAML is a YAML parser and emitter for the Java programming language.

SnakeYAML features

  • a complete YAML 1.1 parser. In particular, SnakeYAML can parse all examples from the specification.
  • Unicode support including UTF-8/UTF-16 input/output.
  • high-level API for serializing and deserializing native Java objects.
  • support for all types from the YAML types repository.
  • relatively sensible error messages.

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

Install libyaml-snake-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 libyaml-snake-java using apt-get by running the following command:

sudo apt-get -y install libyaml-snake-java

Install libyaml-snake-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libyaml-snake-java

Install libyaml-snake-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 libyaml-snake-java using aptitude by running the following command:

sudo aptitude -y install libyaml-snake-java

How To Uninstall libyaml-snake-java on Debian 11

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

sudo apt-get remove libyaml-snake-java

Uninstall libyaml-snake-java And Its Dependencies

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

sudo apt-get -y autoremove libyaml-snake-java

Remove libyaml-snake-java Configurations and Data

To remove libyaml-snake-java configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libyaml-snake-java

Remove libyaml-snake-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libyaml-snake-java

Dependencies

libyaml-snake-java have the following dependencies:

References

Summary

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