How to Install and Uninstall ruby-mysql2 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: September 20,2024

1. Install "ruby-mysql2" package

This tutorial shows how to install ruby-mysql2 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install ruby-mysql2

2. Uninstall "ruby-mysql2" package

This is a short guide on how to uninstall ruby-mysql2 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the ruby-mysql2 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: ruby-mysql2
Priority: optional
Section: universe/ruby
Installed-Size: 122
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Architecture: amd64
Version: 0.4.3-2ubuntu2
Depends: ruby (>= 1:2.3~0), ruby-eventmachine, libc6 (>= 2.4), libmysqlclient20 (>= 5.7.11), libruby2.3 (>= 2.3.0~preview2)
Filename: pool/universe/r/ruby-mysql2/ruby-mysql2_0.4.3-2ubuntu2_amd64.deb
Size: 39038
MD5sum: 1736c06ec56b71c5099439b5becd201d
SHA1: 228c7b3036da0d3314049f96f69330f08c8056f7
SHA256: dba020a37203ab90f4887699189d066ed24722134d53b39a0e56e20f0f5f9e98
Description-en: simple, fast MySQL library for Ruby
This is an API module that allows Ruby programs to interface with MySQL
databases. Usually, it will be pulled in automatically by packages providing
Ruby programs which need this capability, you only need to install it directly
if you intend to write such programs yourself. You may want to prefer the
ruby-mysql2 package over the ruby-mysql package, since benchmarks have shown
it to be faster, it is non-blocking and it supports UTF-8 database encoding.
Description-md5: 637b80aa3f82b9381d0e2ddde04dbdc8
Homepage: http://github.com/brianmario/mysql2
Ruby-Versions: ruby2.3
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu