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

Last updated: November 21,2024

1. Install "mockgen" package

Please follow the step by step instructions below to install mockgen on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install mockgen

2. Uninstall "mockgen" package

This tutorial shows how to uninstall mockgen on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove mockgen $ sudo apt autoclean && sudo apt autoremove

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

Package: mockgen
Architecture: amd64
Version: 1.3.1-2
Built-Using: golang-1.12 (= 1.12.7-3ubuntu1), golang-golang-x-tools (= 1:0.0~git20190729.ff9f140+ds-1)
Priority: extra
Section: universe/devel
Source: golang-github-golang-mock
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 5577
Filename: pool/universe/g/golang-github-golang-mock/mockgen_1.3.1-2_amd64.deb
Size: 1804856
MD5sum: aedccacfcfa826f7f1f72fd8d8a9554d
SHA1: 3bbc5dc8e8774f2df49b26e1e4394d7c77646d1e
SHA256: cb470553917435883ff863260b016cd03a10c628d417f312d449ee987d238df4
Homepage: https://github.com/golang/mock
Description: mocking framework for the Go programming language - mockgen
Description-md5: 08aab40ea6e9ecbc214767942f93f3ad