How To Install libyaml-shell-perl on Ubuntu 18.04

Hostnbit
In this tutorial we learn how to install libyaml-shell-perl on Ubuntu 18.04. libyaml-shell-perl is YAML test shell

Introduction

In this tutorial we learn how to install libyaml-shell-perl on Ubuntu 18.04.

What is libyaml-shell-perl

libyaml-shell-perl is:

This package provides ysh, the YAML test shell, which is meant for
experimenting with the Perl YAML modules in an interactive fashion.
Any datastructures given in Perl are returned back in YAML (and vice versa).

There are three methods to install libyaml-shell-perl 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 libyaml-shell-perl 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-shell-perl using apt-get by running the following command:

sudo apt-get -y install libyaml-shell-perl

Install libyaml-shell-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libyaml-shell-perl

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

sudo aptitude -y install libyaml-shell-perl

How To Uninstall libyaml-shell-perl on Ubuntu 18.04

To uninstall only the libyaml-shell-perl package we can use the following command:

sudo apt-get remove libyaml-shell-perl

Uninstall libyaml-shell-perl And Its Dependencies

To uninstall libyaml-shell-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libyaml-shell-perl

Remove libyaml-shell-perl Configurations and Data

To remove libyaml-shell-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libyaml-shell-perl

Remove libyaml-shell-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libyaml-shell-perl

References

Summary

In this tutorial we learn how to install libyaml-shell-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.

Hostnbit

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Menu Title
Scroll to Top