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

Last updated: November 26,2024

1. Install "ruby-mocha" package

Learn how to install ruby-mocha on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install ruby-mocha

2. Uninstall "ruby-mocha" package

Here is a brief guide to show you how to uninstall ruby-mocha on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: ruby-mocha
Architecture: all
Version: 1.7.0-1
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: 293
Depends: ruby | ruby-interpreter, ruby-metaclass
Suggests: ruby-mocha-doc
Filename: pool/universe/r/ruby-mocha/ruby-mocha_1.7.0-1_all.deb
Size: 39480
MD5sum: 18788bf1df30c9867d375ae1c36a6a53
SHA1: 1caca674ec3daf8f4b6f50775da3ae0108b27056
SHA256: a9a10dca4dcb324915622ae6edc73167bc8d5c0b0f61e701da0be496a97595e4
Homepage: https://gofreerange.com/mocha/docs
Description: Mocking and stubbing library for Ruby
Description-md5: fb69674beb79c60a99238172a3f2726e
Ruby-Versions: all