How To Install libruby2.7 on Ubuntu 20.04

In this tutorial we learn how to install libruby2.7 on Ubuntu 20.04. libruby2.7 is Libraries necessary to run Ruby 2.7 Libraries necessary to run Ruby 2.7

Introduction

In this tutorial we learn how to install libruby2.7 on Ubuntu 20.04.

What is libruby2.7

libruby2.7 is:

Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible.

This package includes the ’libruby-2.7’ library, necessary to run Ruby 2.7. (API version 2.7.0) Task: ubuntu-budgie-desktop

Package: libruby2.7 Architecture: amd64 Version: 2.7.0-5ubuntu1 Multi-Arch: same Priority: optional Section: libs Source: ruby2.7 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Ruby Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 16817 Provides: ruby-benchmark (= 0.1.0), ruby-bigdecimal (= 2.0.0), ruby-bundler (= 2.1.2), ruby-cgi (= 0.1.0), ruby-csv (= 3.1.2), ruby-date (= 3.0.0), ruby-dbm (= 1.1.0), ruby-delegate (= 0.1.0), ruby-did-you-mean (= 1.4.0), ruby-etc (= 1.1.0), ruby-fcntl (= 1.0.0), ruby-fiddle (= 1.0.0), ruby-fileutils (= 1.4.1), ruby-forwardable (= 1.3.1), ruby-gdbm (= 2.1.0), ruby-getoptlong (= 0.1.0), ruby-io-console (= 0.5.3), ruby-ipaddr (= 1.2.2), ruby-irb (= 1.2.1), ruby-json (= 2.3.0), ruby-logger (= 1.4.2), ruby-matrix (= 0.2.0), ruby-mutex-m (= 0.1.0), ruby-net-pop (= 0.1.0), ruby-net-smtp (= 0.1.0), ruby-observer (= 0.1.0), ruby-open3 (= 0.1.0), ruby-openssl (= 2.1.2), ruby-ostruct (= 0.2.0), ruby-prime (= 0.1.1), ruby-pstore (= 0.1.0), ruby-psych (= 3.1.0), ruby-racc (= 1.4.16), ruby-rdoc (= 6.2.1), ruby-readline (= 0.0.2), ruby-readline-ext (= 0.1.0), ruby-reline (= 0.1.2), ruby-rexml (= 3.2.3), ruby-rss (= 0.2.8), ruby-sdbm (= 1.0.0), ruby-singleton (= 0.1.0), ruby-stringio (= 0.1.0), ruby-strscan (= 1.0.3), ruby-timeout (= 0.1.0), ruby-tracer (= 0.1.0), ruby-uri (= 0.10.0), ruby-webrick (= 1.6.0), ruby-yaml (= 0.1.0), ruby-zlib (= 1.1.0) Depends: rake (>= 10.4.2), ruby-minitest (>= 5.4), ruby-net-telnet (>= 0.1.1), ruby-test-unit (>= 3.0.8~), ruby-xmlrpc (>= 0.3.0~), libc6 (>= 2.29), libcrypt1 (>= 1:4.1.0), libffi7 (>= 3.3~20180313), libgdbm-compat4 (>= 1.16), libgdbm6 (>= 1.16), libgmp10, libreadline8 (>= 6.0), libssl1.1 (>= 1.1.1), libyaml-0-2, zlib1g (>= 1:1.2.2) Filename: pool/main/r/ruby2.7/libruby2.7_2.7.0-5ubuntu1_amd64.deb Size: 3525340 MD5sum: 9bfa52307e31901b3853141f9ce249f6 SHA1: f91af7c8432531d903ebdbf28b0c8e15e16f4b78 SHA256: 9bf7706331f971a977bce061a86ab9f96a25f95bf53c6e946c0f4760c958af35 Homepage: https://www.ruby-lang.org/ Description-en: Libraries necessary to run Ruby 2.7 Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible.

This package includes the ’libruby-2.7’ library, necessary to run Ruby 2.7. (API version 2.7.0) Task: ubuntu-budgie-desktop

There are three methods to install libruby2.7 on Ubuntu 20.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 libruby2.7 Using apt-get

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

sudo apt-get update

After updating apt database, We can install libruby2.7 using apt-get by running the following command:

sudo apt-get -y install libruby2.7

Install libruby2.7 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libruby2.7 using apt by running the following command:

sudo apt -y install libruby2.7

Install libruby2.7 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 libruby2.7 using aptitude by running the following command:

sudo aptitude -y install libruby2.7

How To Uninstall libruby2.7 on Ubuntu 20.04

To uninstall only the libruby2.7 package we can use the following command:

sudo apt-get remove libruby2.7

Uninstall libruby2.7 And Its Dependencies

To uninstall libruby2.7 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libruby2.7

Remove libruby2.7 Configurations and Data

To remove libruby2.7 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libruby2.7

Remove libruby2.7 configuration, data, and all of its dependencies

We can use the following command to remove libruby2.7 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libruby2.7

References

Summary

In this tutorial we learn how to install libruby2.7 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.