How to Install and Uninstall ruby-mysql2 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 23,2024

1. Install "ruby-mysql2" package

This tutorial shows how to install ruby-mysql2 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install ruby-mysql2

2. Uninstall "ruby-mysql2" package

This tutorial shows how to uninstall ruby-mysql2 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the ruby-mysql2 package on Ubuntu 20.04 LTS (Focal Fossa)

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
Homepage: https://github.com/brianmario/mysql2
Description: simple, fast MySQL library for Ruby
Description-md5: 637b80aa3f82b9381d0e2ddde04dbdc8
Ruby-Versions: ruby2.7