How to Install and Uninstall mockgen Package on Ubuntu 21.10 (Impish Indri)

Last updated: February 24,2025

1. Install "mockgen" package

Please follow the guidelines below to install mockgen on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install mockgen

2. Uninstall "mockgen" package

Please follow the guidelines below to uninstall mockgen on Ubuntu 21.10 (Impish Indri):

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

3. Information about the mockgen package on Ubuntu 21.10 (Impish Indri)

Package: mockgen
Architecture: amd64
Version: 1.3.1-2build1
Built-Using: golang-1.14 (= 1.14.7-2ubuntu1), golang-github-yuin-goldmark (= 1.1.31-1), golang-golang-x-tools (= 1:0.0~git20200410.79a7a31+ds-3), golang-golang-x-xerrors (= 0.0~git20191204.9bdfabe-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: 5663
Filename: pool/universe/g/golang-github-golang-mock/mockgen_1.3.1-2build1_amd64.deb
Size: 1845748
MD5sum: a36ba8f2d7b5d3302da4cd88ea503388
SHA1: 649654ee24956cb774086176da3980e60a0b51ba
SHA256: 357c5f8e321ebe3bac702aec395d9867f7b9d6c4d469f00cd2abfcf633b1831f
SHA512: d60245eb15a1b7887adb20eb69863677e88a16879e956a68c47d124fd5c99738e124fc1a387f1d3cd6b7e3e446b82b220efb735f5b8a4ef07c1931d7e8999f45
Homepage: https://github.com/golang/mock
Description-en: mocking framework for the Go programming language - mockgen
GoMock is a mocking framework for the Go programming language.
It integrates well with Go's built-in testing package, but can be used in
other contexts too.
.
This package provides the "mockgen" utility.
Description-md5: 08aab40ea6e9ecbc214767942f93f3ad