How To Install bash-static on Ubuntu 20.04

In this tutorial we learn how to install bash-static on Ubuntu 20.04. bash-static is GNU Bourne Again SHell (static version) GNU Bourne Again SHell (static version)

Introduction

In this tutorial we learn how to install bash-static on Ubuntu 20.04.

What is bash-static

bash-static 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).

Statically linked.

Package: bash-static Architecture: amd64 Version: 5.0-6ubuntu1 Built-Using: glibc (= 2.30-0ubuntu3) Multi-Arch: foreign Priority: optional Section: universe/shells Source: bash Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2424 Depends: passwd (>= 1:4.0.3-10) Suggests: bash-doc Filename: pool/universe/b/bash/bash-static_5.0-6ubuntu1_amd64.deb Size: 973632 MD5sum: 4f6b3db3ff4fb7db0e08a921ab9c622e SHA1: d3575a25c7a3184dd1af8a0bde98d03e21b06965 SHA256: 5f2085703e6e7ccd991ba4ccaaf747f440843ef5061350d608e4f600b39b10e5 Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Description-en: GNU Bourne Again SHell (static version) 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).

Statically linked.

There are three methods to install bash-static 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-static 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-static using apt-get by running the following command:

sudo apt-get -y install bash-static

Install bash-static Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install bash-static using apt by running the following command:

sudo apt -y install bash-static

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

sudo aptitude -y install bash-static

How To Uninstall bash-static on Ubuntu 20.04

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

sudo apt-get remove bash-static

Uninstall bash-static And Its Dependencies

To uninstall bash-static and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove bash-static

Remove bash-static Configurations and Data

To remove bash-static configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge bash-static

Remove bash-static configuration, data, and all of its dependencies

We can use the following command to remove bash-static configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge bash-static

References

Summary

In this tutorial we learn how to install bash-static package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.