How To Install sash on Debian 9

In this tutorial we learn how to install sash on Debian 9. sash is Stand-alone shell

Introduction

In this tutorial we learn how to install sash on Debian 9.

What is sash

sash is:

sash serves as an interactive substitute for /bin/sh, for use when /bin/sh is unusable. It’s statically linked, and includes many standard utilities as builtins (type “help” at the prompt for a reference list). If you’ve installed sash before rendering your system unbootable, and you have some knowledge of how your system is supposed to work, you might be able to repair your system using init=/bin/sash at the boot prompt.

Some people also prefer to have sash available as the shell for a root account (perhaps an under an alternate name such as sashroot) Configuration support is included for people who want this.

Note: sash is not intended to serve as /bin/sh, and has few of the interactive features present in bash or ksh. It’s designed to be simple and robust, for people who need to do emergency repair work on a system.

Also note: sash doesn’t include a built-in fsck – fsck is too big and complicated. If you need fsck, you’ll have to get at least one partition or disk working well enough to run fsck. More generally, sash is but one tool of many (backups, backup recovery tools, emergency boot disks or partitions, spare parts, testing of disaster plans, etc.) to help you recover a damaged system.

There are three methods to install sash on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install sash Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install sash

Install sash Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install sash using apt by running the following command:

sudo apt -y install sash

Install sash 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install sash using aptitude by running the following command:

sudo aptitude -y install sash

How To Uninstall sash on Debian 9

To uninstall only the sash package we can use the following command:

sudo apt-get remove sash

Uninstall sash And Its Dependencies

To uninstall sash and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove sash

Remove sash Configurations and Data

To remove sash configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge sash

Remove sash configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sash

Dependencies

sash have the following dependencies:

References

Summary

In this tutorial we learn how to install sash package on Debian 9 using different package management tools: apt, apt-get and aptitude.