How To Install bash-doc on Ubuntu 20.04
Introduction
In this tutorial we learn how to install bash-doc
on Ubuntu 20.04.
What is bash-doc
bash-doc is:
Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh).
This package contains the distributable documentation, all the examples and the main changelog.
Package: bash-doc Architecture: all Version: 5.0-6ubuntu1 Priority: optional Section: doc Source: bash Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 3138 Depends: dpkg (>= 1.15.4) | install-info Replaces: bash (« 4.3-2) Filename: pool/main/b/bash/bash-doc_5.0-6ubuntu1_all.deb Size: 1749380 MD5sum: 283445f1d7526a12fecda3e4a0f28030 SHA1: 5893ecae402f03717e7ee1405392b9d142897a93 SHA256: e49229a106a5a5e5e6ea48b05cd8fc04f71dd105ca8d13b07678b35df6dc0f24 Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Description-en: Documentation and examples for the GNU Bourne Again SHell Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh).
This package contains the distributable documentation, all the examples and the main changelog.
There are three methods to install bash-doc
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install bash-doc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install bash-doc
using apt-get
by running the following command:
sudo apt-get -y install bash-doc
Install bash-doc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install bash-doc
using apt
by running the following command:
sudo apt -y install bash-doc
Install bash-doc Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install bash-doc
using aptitude
by running the following command:
sudo aptitude -y install bash-doc
How To Uninstall bash-doc on Ubuntu 20.04
To uninstall only the bash-doc
package we can use the following command:
sudo apt-get remove bash-doc
Uninstall bash-doc And Its Dependencies
To uninstall bash-doc
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove bash-doc
Remove bash-doc Configurations and Data
To remove bash-doc
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge bash-doc
Remove bash-doc configuration, data, and all of its dependencies
We can use the following command to remove bash-doc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge bash-doc
References
Summary
In this tutorial we learn how to install bash-doc
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.