How to Install and Uninstall ruby-nio4r Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 06,2024

1. Install "ruby-nio4r" package

Please follow the step by step instructions below to install ruby-nio4r on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ruby-nio4r

2. Uninstall "ruby-nio4r" package

This is a short guide on how to uninstall ruby-nio4r on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove ruby-nio4r $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby-nio4r package on Ubuntu 21.10 (Impish Indri)

Package: ruby-nio4r
Architecture: amd64
Version: 2.3.1-2build1
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 135
Depends: ruby (>= 1:2.7~0), libc6 (>= 2.17), libruby2.7 (>= 2.7.0), ruby (<< 1:2.8~)
Filename: pool/universe/r/ruby-nio4r/ruby-nio4r_2.3.1-2build1_amd64.deb
Size: 41080
MD5sum: 7eed0b59da37f37bee5c5bc77e941a72
SHA1: aa0010c33481c44b2357ec329562c20338b830c8
SHA256: ffde52bc7e348d625c2c97b3743abca682e144ace6cbc1fad1d0e552ffaada31
SHA512: 75b9bbc3195832411f60a0b71d89290ba0fa0a07a415de2da111f448082ad437841a950472450666fc6aab0b5760b9611741670b0f15f257639a4a57f55264a3
Homepage: https://github.com/socketry/nio4r
Description-en: Ruby library providing a selector API for monitoring IO objects
nio4r (New IO for Ruby) provides an abstract, cross-platform stateful
I/O selector API for Ruby. I/O selectors are the heart of
"reactor"-based event loops, and monitor multiple I/O objects for
various types of readiness, e.g. ready for reading or writing.
.
The most similar API provided by Ruby today is Kernel.select, however
the select API requires you to pass in arrays of all of the I/O
objects you're interested in every time. nio4r provides a more
object-oriented API that lets you register I/O objects with a selector
then handle them when they're selected for various types of events.
.
nio4r is modeled after the Java NIO API, but simplified for
ease-of-use.
.
Its goals are:
.
* Expose high-level interfaces for stateful IO selectors.
* Keep the API small to maximize both portability and performance across
many different OSes and Ruby VMs.
* Provide inherently thread-safe facilities for working with IO objects.
Description-md5: 517e4f005b34b5c4fd9a4d76ac0a0c97
Ruby-Versions: ruby2.7