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

Last updated: November 24,2024

1. Install "mocha" package

Please follow the guidance below to install mocha on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install mocha

2. Uninstall "mocha" package

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

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

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

Package: mocha
Architecture: all
Version: 7.0.1+ds1-2
Priority: extra
Section: universe/web
Source: node-mocha
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Javascript Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 659
Provides: node-mocha (= 7.0.1+ds1-2)
Depends: nodejs (>= 4), node-browser-stdout, node-chalk, node-chokidar, node-commander (>= 2.11.0), node-debug (>= 3.1), node-define-properties, node-diff (>= 1.3.0), node-escape-string-regexp, node-function-bind, node-glob (>= 7.1.2), node-growl (>= 1.10.5), node-he (>= 1.2.0), node-is-buffer, node-js-yaml (>= 3.13.1), node-lodash (>= 4.17.15+dfsg-2~), node-minimatch (>= 3.0.4), node-mkdirp (>= 0.5.1), node-supports-color (>= 4.4.0), node-wide-align (>= 1.1.3), node-yargs (>= 13.2.2), node-yargs-parser (>= 13.0.0)
Suggests: chai
Filename: pool/universe/n/node-mocha/mocha_7.0.1+ds1-2_all.deb
Size: 113136
MD5sum: 9ab5fe61bdd12175e3106baa709f2835
SHA1: bc55459f46b54077bddf2cf02094151172bef54d
SHA256: 148fa6b14dac325cc8544e9a40d1b0c89078e66287e70acafc099254b25e194a
Homepage: https://mochajs.org
Description: simple, flexible, fun test framework - Node.js module
Description-md5: 70d1e5130e31bf8c972ec24635fac387