How to Install and Uninstall ruby-mysql2 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 17,2024

1. Install "ruby-mysql2" package

Please follow the guidelines below to install ruby-mysql2 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install ruby-mysql2

2. Uninstall "ruby-mysql2" package

Please follow the guidance below to uninstall ruby-mysql2 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the ruby-mysql2 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: ruby-mysql2
Architecture: amd64
Version: 0.4.10-0ubuntu5
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: 130
Depends: ruby (>= 1:2.5~0), ruby-eventmachine, libc6 (>= 2.4), libmysqlclient20 (>= 5.7.11), libruby2.5 (>= 2.5.0~preview1)
Filename: pool/universe/r/ruby-mysql2/ruby-mysql2_0.4.10-0ubuntu5_amd64.deb
Size: 40560
MD5sum: 2aeebfd480161a77a0d67c4d4b29aba2
SHA1: 92fd52638f75fff00eb9905c7eac4606b8f75652
SHA256: bc36918f6fb12f2c61db2a3e7fcc64442b1e15f307bc1afbd748e3179e0b4f7b
Homepage: http://github.com/brianmario/mysql2
Description: simple, fast MySQL library for Ruby
Description-md5: 637b80aa3f82b9381d0e2ddde04dbdc8
Ruby-Versions: ruby2.5