How To Install busybox-static on Ubuntu 18.04

In this tutorial we learn how to install busybox-static on Ubuntu 18.04. busybox-static is Standalone rescue shell with tons of builtin utilities

Introduction

In this tutorial we learn how to install busybox-static on Ubuntu 18.04.

What is busybox-static

busybox-static is:

BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for the most common utilities you would usually find on your desktop system (i.e., ls, cp, mv, mount, tar, etc.). The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts.

busybox-static provides you with a statically linked simple stand alone shell that provides all the utilities available in BusyBox. This package is intended to be used as a rescue shell, in the event that you screw up your system. Invoke “busybox sh” and you have a standalone shell ready to save your system from certain destruction. Invoke “busybox”, and it will list the available builtin commands.

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

sudo apt-get -y install busybox-static

Install busybox-static Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install busybox-static

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

sudo aptitude -y install busybox-static

How To Uninstall busybox-static on Ubuntu 18.04

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

sudo apt-get remove busybox-static

Uninstall busybox-static And Its Dependencies

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

sudo apt-get -y autoremove busybox-static

Remove busybox-static Configurations and Data

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

sudo apt-get -y purge busybox-static

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

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

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

References

Summary

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