How To Install busybox-static on Ubuntu 20.04

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

Introduction

In this tutorial we learn how to install busybox-static on Ubuntu 20.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. Task: standard

Package: busybox-static Architecture: amd64 Version: 1:1.30.1-4ubuntu6.2 Built-Using: glibc (= 2.31-0ubuntu9) Priority: standard Section: shells Source: busybox Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Install System Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2224 Provides: busybox Conflicts: busybox Replaces: busybox Filename: pool/main/b/busybox/busybox-static_1.30.1-4ubuntu6.2_amd64.deb Size: 948908 MD5sum: 629adb6a13f248345acb2d681ca8f2e7 SHA1: a35ba84ca09fdd3e2663f93be07ebe2716158825 SHA256: 84fb74e615a02298821fc978985384bf719c3c3e90fcb448f680ac1b2f1ba21d SHA512: 664a9e8210875778a7b717255e08ad6c9953725baa763061d7e8633da502ff5efd081b3829a91805ca957787efd03c966ea0b7e7aec964338f1d5cbbec3ae30c Homepage: http://www.busybox.net Description-en: Standalone rescue shell with tons of builtin utilities 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. Task: standard

Package: busybox-static Architecture: amd64 Version: 1:1.30.1-4ubuntu6 Built-Using: glibc (= 2.31-0ubuntu6) Priority: standard Section: shells Source: busybox Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Install System Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2224 Provides: busybox Conflicts: busybox Replaces: busybox Filename: pool/main/b/busybox/busybox-static_1.30.1-4ubuntu6_amd64.deb Size: 949272 MD5sum: 7bebf0b7cf1ab174861077615532802b SHA1: 2177b78a638ec07953418db0cf8fd3387173d989 SHA256: 9d3f3287853ac1c26af7ac1cf2b9bc81e71b3a01e998c7f18a83c9b61de5d714 Homepage: http://www.busybox.net Description-en: Standalone rescue shell with tons of builtin utilities 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. Task: standard

There are three methods to install busybox-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 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 20.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 20.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 20.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 20.04 using different package management tools: apt, apt-get and aptitude.