How To Install golang-github-mock on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-mock
on Fedora 36.
What is golang-github-mock
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.
We can use yum
or dnf
to install golang-github-mock
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-mock.
Install golang-github-mock on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install golang-github-mock
using dnf
by running the following command:
sudo dnf -y install golang-github-mock
Install golang-github-mock on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install golang-github-mock
using yum
by running the following command:
sudo yum -y install golang-github-mock
How To Uninstall golang-github-mock on Fedora 36
To uninstall only the golang-github-mock
package we can use the following command:
sudo dnf remove golang-github-mock
golang-github-mock Package Contents on Fedora 36
/usr/bin/mockgen
/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/abd9e05c5864baee61226ae6ad78c1c1fa84b8
/usr/share/doc/golang-github-mock
/usr/share/doc/golang-github-mock/AUTHORS
/usr/share/doc/golang-github-mock/CONTRIBUTORS
/usr/share/doc/golang-github-mock/README.md
/usr/share/licenses/golang-github-mock
/usr/share/licenses/golang-github-mock/LICENSE
References
Summary
In this tutorial we learn how to install golang-github-mock
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).