How To Install golang-docs on CentOS 8

golang-docs is Golang compiler docs

Introduction

In this tutorial we learn how to install golang-docs on CentOS 8.

What is golang-docs

Golang compiler docs.

We can use yum or dnf to install golang-docs on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install golang-docs.

Install golang-docs on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install golang-docs using dnf by running the following command:

sudo dnf -y install golang-docs

Install golang-docs on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install golang-docs using yum by running the following command:

sudo yum -y install golang-docs

How To Uninstall golang-docs on CentOS 8

To uninstall only the golang-docs package we can use the following command:

sudo dnf remove golang-docs

golang-docs Package Contents on CentOS 8

/usr/lib/golang/doc
/usr/lib/golang/doc/articles
/usr/lib/golang/doc/articles/go_command.html
/usr/lib/golang/doc/articles/index.html
/usr/lib/golang/doc/articles/race_detector.html
/usr/lib/golang/doc/articles/wiki
/usr/lib/golang/doc/articles/wiki/edit.html
/usr/lib/golang/doc/articles/wiki/final-noclosure.go
/usr/lib/golang/doc/articles/wiki/final-noerror.go
/usr/lib/golang/doc/articles/wiki/final-parsetemplate.go
/usr/lib/golang/doc/articles/wiki/final-template.go
/usr/lib/golang/doc/articles/wiki/final.go
/usr/lib/golang/doc/articles/wiki/final_test.go
/usr/lib/golang/doc/articles/wiki/go.mod
/usr/lib/golang/doc/articles/wiki/http-sample.go
/usr/lib/golang/doc/articles/wiki/index.html
/usr/lib/golang/doc/articles/wiki/notemplate.go
/usr/lib/golang/doc/articles/wiki/part1-noerror.go
/usr/lib/golang/doc/articles/wiki/part1.go
/usr/lib/golang/doc/articles/wiki/part2.go
/usr/lib/golang/doc/articles/wiki/part3-errorhandling.go
/usr/lib/golang/doc/articles/wiki/part3.go
/usr/lib/golang/doc/articles/wiki/test_Test.txt.good
/usr/lib/golang/doc/articles/wiki/test_edit.good
/usr/lib/golang/doc/articles/wiki/test_view.good
/usr/lib/golang/doc/articles/wiki/view.html
/usr/lib/golang/doc/articles/wiki/wiki_test.go
/usr/lib/golang/doc/asm.html
/usr/lib/golang/doc/cmd.html
/usr/lib/golang/doc/codewalk
/usr/lib/golang/doc/codewalk/codewalk.css
/usr/lib/golang/doc/codewalk/codewalk.js
/usr/lib/golang/doc/codewalk/codewalk.xml
/usr/lib/golang/doc/codewalk/codewalk_test.go
/usr/lib/golang/doc/codewalk/functions.xml
/usr/lib/golang/doc/codewalk/markov.go
/usr/lib/golang/doc/codewalk/markov.xml
/usr/lib/golang/doc/codewalk/pig.go
/usr/lib/golang/doc/codewalk/popout.png
/usr/lib/golang/doc/codewalk/sharemem.xml
/usr/lib/golang/doc/codewalk/urlpoll.go
/usr/lib/golang/doc/contribute.html
/usr/lib/golang/doc/debugging_with_gdb.html
/usr/lib/golang/doc/diagnostics.html
/usr/lib/golang/doc/editors.html
/usr/lib/golang/doc/effective_go.html
/usr/lib/golang/doc/gccgo_contribute.html
/usr/lib/golang/doc/gccgo_install.html
/usr/lib/golang/doc/go-logo-black.png
/usr/lib/golang/doc/go-logo-blue.png
/usr/lib/golang/doc/go-logo-white.png
/usr/lib/golang/doc/go1.1.html
/usr/lib/golang/doc/go1.10.html
/usr/lib/golang/doc/go1.11.html
/usr/lib/golang/doc/go1.12.html
/usr/lib/golang/doc/go1.13.html
/usr/lib/golang/doc/go1.14.html
/usr/lib/golang/doc/go1.15.html
/usr/lib/golang/doc/go1.2.html
/usr/lib/golang/doc/go1.3.html
/usr/lib/golang/doc/go1.4.html
/usr/lib/golang/doc/go1.5.html
/usr/lib/golang/doc/go1.6.html
/usr/lib/golang/doc/go1.7.html
/usr/lib/golang/doc/go1.8.html
/usr/lib/golang/doc/go1.9.html
/usr/lib/golang/doc/go1.html
/usr/lib/golang/doc/go1compat.html
/usr/lib/golang/doc/go_faq.html
/usr/lib/golang/doc/go_mem.html
/usr/lib/golang/doc/go_spec.html
/usr/lib/golang/doc/gopher
/usr/lib/golang/doc/gopher/README
/usr/lib/golang/doc/gopher/appenginegopher.jpg
/usr/lib/golang/doc/gopher/appenginegophercolor.jpg
/usr/lib/golang/doc/gopher/appenginelogo.gif
/usr/lib/golang/doc/gopher/biplane.jpg
/usr/lib/golang/doc/gopher/bumper.png
/usr/lib/golang/doc/gopher/bumper192x108.png
/usr/lib/golang/doc/gopher/bumper320x180.png
/usr/lib/golang/doc/gopher/bumper480x270.png
/usr/lib/golang/doc/gopher/bumper640x360.png
/usr/lib/golang/doc/gopher/doc.png
/usr/lib/golang/doc/gopher/favicon.svg
/usr/lib/golang/doc/gopher/fiveyears.jpg
/usr/lib/golang/doc/gopher/frontpage.png
/usr/lib/golang/doc/gopher/gopherbw.png
/usr/lib/golang/doc/gopher/gophercolor.png
/usr/lib/golang/doc/gopher/gophercolor16x16.png
/usr/lib/golang/doc/gopher/help.png
/usr/lib/golang/doc/gopher/modelsheet.jpg
/usr/lib/golang/doc/gopher/pencil
/usr/lib/golang/doc/gopher/pencil/gopherhat.jpg
/usr/lib/golang/doc/gopher/pencil/gopherhelmet.jpg
/usr/lib/golang/doc/gopher/pencil/gophermega.jpg
/usr/lib/golang/doc/gopher/pencil/gopherrunning.jpg
/usr/lib/golang/doc/gopher/pencil/gopherswim.jpg
/usr/lib/golang/doc/gopher/pencil/gopherswrench.jpg
/usr/lib/golang/doc/gopher/pkg.png
/usr/lib/golang/doc/gopher/project.png
/usr/lib/golang/doc/gopher/ref.png
/usr/lib/golang/doc/gopher/run.png
/usr/lib/golang/doc/gopher/talks.png
/usr/lib/golang/doc/help.html
/usr/lib/golang/doc/ie.css
/usr/lib/golang/doc/install-source.html
/usr/lib/golang/doc/install.html
/usr/lib/golang/doc/play
/usr/lib/golang/doc/play/fib.go
/usr/lib/golang/doc/play/hello.go
/usr/lib/golang/doc/play/life.go
/usr/lib/golang/doc/play/peano.go
/usr/lib/golang/doc/play/pi.go
/usr/lib/golang/doc/play/sieve.go
/usr/lib/golang/doc/play/solitaire.go
/usr/lib/golang/doc/play/tree.go
/usr/lib/golang/doc/progs
/usr/lib/golang/doc/progs/cgo1.go
/usr/lib/golang/doc/progs/cgo2.go
/usr/lib/golang/doc/progs/cgo3.go
/usr/lib/golang/doc/progs/cgo4.go
/usr/lib/golang/doc/progs/defer.go
/usr/lib/golang/doc/progs/defer2.go
/usr/lib/golang/doc/progs/eff_bytesize.go
/usr/lib/golang/doc/progs/eff_qr.go
/usr/lib/golang/doc/progs/eff_sequence.go
/usr/lib/golang/doc/progs/eff_unused1.go
/usr/lib/golang/doc/progs/eff_unused2.go
/usr/lib/golang/doc/progs/error.go
/usr/lib/golang/doc/progs/error2.go
/usr/lib/golang/doc/progs/error3.go
/usr/lib/golang/doc/progs/error4.go
/usr/lib/golang/doc/progs/go1.go
/usr/lib/golang/doc/progs/gobs1.go
/usr/lib/golang/doc/progs/gobs2.go
/usr/lib/golang/doc/progs/image_draw.go
/usr/lib/golang/doc/progs/image_package1.go
/usr/lib/golang/doc/progs/image_package2.go
/usr/lib/golang/doc/progs/image_package3.go
/usr/lib/golang/doc/progs/image_package4.go
/usr/lib/golang/doc/progs/image_package5.go
/usr/lib/golang/doc/progs/image_package6.go
/usr/lib/golang/doc/progs/interface.go
/usr/lib/golang/doc/progs/interface2.go
/usr/lib/golang/doc/progs/json1.go
/usr/lib/golang/doc/progs/json2.go
/usr/lib/golang/doc/progs/json3.go
/usr/lib/golang/doc/progs/json4.go
/usr/lib/golang/doc/progs/json5.go
/usr/lib/golang/doc/progs/run.go
/usr/lib/golang/doc/progs/slices.go
/usr/lib/golang/doc/progs/timeout1.go
/usr/lib/golang/doc/progs/timeout2.go
/usr/lib/golang/doc/share.png
/usr/lib/golang/doc/tos.html

References

Summary

In this tutorial we learn how to install golang-docs on CentOS 8 using yum and dnf.