How to Install and Uninstall ruby-mysql2 Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 19,2024

1. Install "ruby-mysql2" package

This is a short guide on how to install ruby-mysql2 on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install ruby-mysql2

2. Uninstall "ruby-mysql2" package

Please follow the step by step instructions below to uninstall ruby-mysql2 on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the ruby-mysql2 package on Ubuntu 20.10 (Groovy Gorilla)

Package: ruby-mysql2
Architecture: amd64
Version: 0.5.2-1ubuntu3
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: 142
Depends: ruby (>= 1:2.7~0), ruby-eventmachine, libc6 (>= 2.7), libmysqlclient21 (>= 8.0.11), libruby2.7 (>= 2.7.0-4), ruby (<< 1:2.8~)
Filename: pool/universe/r/ruby-mysql2/ruby-mysql2_0.5.2-1ubuntu3_amd64.deb
Size: 42532
MD5sum: b97727f573d4874910898d78d4175308
SHA1: c334009123539ea4abc377937fee15cef0cae873
SHA256: 7cde074bb8d7affca0a29e7b66dfd4237efc93257fc793912bc410b4217b4f92
SHA512: ecff17d73909f8d7ccd11fd4c266de0600e1a335b1446092383a0b81acf13316012d5f6aa2dbeb7849ed270db737c42a1a94fd2d31682fd712eefc6191de2808
Homepage: https://github.com/brianmario/mysql2
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
Ruby-Versions: ruby2.7