How To Install golang-github-alecthomas-assert-devel on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-alecthomas-assert-devel
on Fedora 36.
What is golang-github-alecthomas-assert-devel
This is a fork of stretchr’s assertion library that does two things – It makes spotting differences in equality much easier. It uses repr and diffmatchpatch to display structural differences in colour. – Aborts tests on first assertion failure (the same behaviour as stretchr/testify/require). This package contains the source code needed for building packages that reference the following Go import paths – github.com/alecthomas/assert
We can use yum
or dnf
to install golang-github-alecthomas-assert-devel
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-alecthomas-assert-devel.
Install golang-github-alecthomas-assert-devel 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-alecthomas-assert-devel
using dnf
by running the following command:
sudo dnf -y install golang-github-alecthomas-assert-devel
Install golang-github-alecthomas-assert-devel 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-alecthomas-assert-devel
using yum
by running the following command:
sudo yum -y install golang-github-alecthomas-assert-devel
How To Uninstall golang-github-alecthomas-assert-devel on Fedora 36
To uninstall only the golang-github-alecthomas-assert-devel
package we can use the following command:
sudo dnf remove golang-github-alecthomas-assert-devel
golang-github-alecthomas-assert-devel Package Contents on Fedora 36
/usr/share/doc/golang-github-alecthomas-assert-devel
/usr/share/doc/golang-github-alecthomas-assert-devel/README.md
/usr/share/doc/golang-github-alecthomas-assert-devel/_example
/usr/share/doc/golang-github-alecthomas-assert-devel/_example/diff.png
/usr/share/doc/golang-github-alecthomas-assert-devel/_example/example_test.go
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/alecthomas
/usr/share/gocode/src/github.com/alecthomas/assert
/usr/share/gocode/src/github.com/alecthomas/assert/.goipath
/usr/share/gocode/src/github.com/alecthomas/assert/README.md
/usr/share/gocode/src/github.com/alecthomas/assert/assertions.go
/usr/share/gocode/src/github.com/alecthomas/assert/diff.go
/usr/share/gocode/src/github.com/alecthomas/assert/doc.go
/usr/share/gocode/src/github.com/alecthomas/assert/errors.go
/usr/share/gocode/src/github.com/alecthomas/assert/forward_assertions.go
/usr/share/gocode/src/github.com/alecthomas/assert/http_assertions.go
/usr/share/licenses/golang-github-alecthomas-assert-devel
/usr/share/licenses/golang-github-alecthomas-assert-devel/LICENCE.txt
References
Summary
In this tutorial we learn how to install golang-github-alecthomas-assert-devel
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).