How To Install bash-doc on CentOS 8

bash-doc is Documentation files for bash

Introduction

In this tutorial we learn how to install bash-doc on CentOS 8.

What is bash-doc

This package contains documentation files for bash.

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

Install bash-doc 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 bash-doc using dnf by running the following command:

sudo dnf -y install bash-doc

Install bash-doc 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 bash-doc using yum by running the following command:

sudo yum -y install bash-doc

How To Uninstall bash-doc on CentOS 8

To uninstall only the bash-doc package we can use the following command:

sudo dnf remove bash-doc

bash-doc Package Contents on CentOS 8

/usr/share/doc/bash-doc
/usr/share/doc/bash-doc/article.ps
/usr/share/doc/bash-doc/article.txt
/usr/share/doc/bash-doc/bash.0
/usr/share/doc/bash-doc/bash.html
/usr/share/doc/bash-doc/bash.ps
/usr/share/doc/bash-doc/bashbug.0
/usr/share/doc/bash-doc/bashbug.ps
/usr/share/doc/bash-doc/bashref.html
/usr/share/doc/bash-doc/bashref.ps
/usr/share/doc/bash-doc/builtins.0
/usr/share/doc/bash-doc/builtins.ps
/usr/share/doc/bash-doc/rbash.0
/usr/share/doc/bash-doc/rbash.ps
/usr/share/doc/bash-doc/rose94.ps
/usr/share/doc/bash/CHANGES
/usr/share/doc/bash/COMPAT
/usr/share/doc/bash/NEWS
/usr/share/doc/bash/NOTES
/usr/share/doc/bash/POSIX
/usr/share/doc/bash/RBASH
/usr/share/doc/bash/README
/usr/share/doc/bash/doc
/usr/share/doc/bash/examples
/usr/share/doc/bash/examples/INDEX.html
/usr/share/doc/bash/examples/INDEX.txt
/usr/share/doc/bash/examples/complete
/usr/share/doc/bash/examples/complete/bash_completion
/usr/share/doc/bash/examples/complete/bashcc-1.0.1.tar.gz
/usr/share/doc/bash/examples/complete/cdfunc
/usr/share/doc/bash/examples/complete/complete-examples
/usr/share/doc/bash/examples/functions
/usr/share/doc/bash/examples/functions/array-stuff
/usr/share/doc/bash/examples/functions/array-to-string
/usr/share/doc/bash/examples/functions/autoload
/usr/share/doc/bash/examples/functions/autoload.v2
/usr/share/doc/bash/examples/functions/autoload.v3
/usr/share/doc/bash/examples/functions/basename
/usr/share/doc/bash/examples/functions/csh-compat
/usr/share/doc/bash/examples/functions/dirname
/usr/share/doc/bash/examples/functions/dirstack
/usr/share/doc/bash/examples/functions/exitstat
/usr/share/doc/bash/examples/functions/external
/usr/share/doc/bash/examples/functions/fact
/usr/share/doc/bash/examples/functions/fstty
/usr/share/doc/bash/examples/functions/func
/usr/share/doc/bash/examples/functions/inetaddr
/usr/share/doc/bash/examples/functions/inpath
/usr/share/doc/bash/examples/functions/isnum2
/usr/share/doc/bash/examples/functions/isvalidip
/usr/share/doc/bash/examples/functions/ksh-cd
/usr/share/doc/bash/examples/functions/ksh-compat-test
/usr/share/doc/bash/examples/functions/kshenv
/usr/share/doc/bash/examples/functions/login
/usr/share/doc/bash/examples/functions/notify.bash
/usr/share/doc/bash/examples/functions/seq
/usr/share/doc/bash/examples/functions/seq2
/usr/share/doc/bash/examples/functions/shcat
/usr/share/doc/bash/examples/functions/shcat2
/usr/share/doc/bash/examples/functions/sort-pos-params
/usr/share/doc/bash/examples/functions/substr
/usr/share/doc/bash/examples/functions/substr2
/usr/share/doc/bash/examples/functions/whatis
/usr/share/doc/bash/examples/functions/whence
/usr/share/doc/bash/examples/functions/which
/usr/share/doc/bash/examples/misc
/usr/share/doc/bash/examples/misc/aliasconv.bash
/usr/share/doc/bash/examples/misc/aliasconv.sh
/usr/share/doc/bash/examples/misc/cshtobash
/usr/share/doc/bash/examples/scripts
/usr/share/doc/bash/examples/scripts/cat.sh
/usr/share/doc/bash/examples/scripts/center
/usr/share/doc/bash/examples/scripts/inpath
/usr/share/doc/bash/examples/scripts/shprompt
/usr/share/doc/bash/examples/scripts/spin.bash
/usr/share/doc/bash/examples/scripts/xterm_title
/usr/share/doc/bash/examples/scripts/zprintf
/usr/share/doc/bash/examples/startup-files
/usr/share/doc/bash/examples/startup-files/Bash_aliases
/usr/share/doc/bash/examples/startup-files/Bash_profile
/usr/share/doc/bash/examples/startup-files/Bashrc.bfox
/usr/share/doc/bash/examples/startup-files/README
/usr/share/doc/bash/examples/startup-files/bash-profile
/usr/share/doc/bash/examples/startup-files/bashrc

References

Summary

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