Article View: linux.debian.user
Article #50Re: Reason for shipping busybox?
From: Robert Heller
Date: Fri, 09 Oct 2026 00:10
Date: Fri, 09 Oct 2026 00:10
50 lines
4348 bytes
4348 bytes
At Thu, 08 Oct 2026 23:32:47 +0200 Michel Verdier <listes@verdier.net> wrote:
>
> On 2026-10-08, Robert Heller wrote:
>
> > And typically it is build as a *static* executable, with no shared library
> > dependices, which makes it useful as the "shell" used in init ramdisk images
>
> Perhaps you check busybox-static. For busybox it is only almost static :)
> I have:
>
> # dpkg -l busybox busybox-static
> [...]
> ii busybox 1:1.37.0-6+b9 amd64 Tiny utilities for small and embedded systems
> un busybox-static <none> <none> (no description available)
> # file /usr/bin/busybox
> /usr/bin/busybox: ELF 64-bit LSB pie executable, [...]
> # ldd /usr/bin/busybox
> linux-vdso.so.1 (0x00007f29ab199000)
> libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f29ab095000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f29aaea1000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f29ab19b000)
>
> But as you said it is useful in initrd due to its small size and number
> of libraries:
>
> # ls -l /usr/bin/busybox
> -rwxr-xr-x 1 root root 826128 12 juil. 19:12 /usr/bin/busybox
>
marchhare% dpkg-query -l busybox\* | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercaseºd)
||/ Name Version Architecture Description
+++-==============-=====================-============-======================================================
un busybox <none> <none> (no description available)
ii busybox-static 1:1.35.0-4+deb12u1+b1 arm64 Standalone rescue shell with tons of builtin utilities
marchhare% ldd /bin/busybox
not a dynamic executable
heller has logged on pts/6 from :0 at 08-Oct-2026 20:05.
marchhare% ls -l /bin/busybox
-rwxr-xr-x 1 root root 1846504 May 7 16:33 /bin/busybox
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
Technical Details
Message-ID:
<NM6lr-4miD-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NM6lr-4miD-11@gated-at.bofh.it> <NM40h-4kZw-11@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Robert Heller <heller@deepsoft.com>
Newsgroups: linux.debian.user
Subject: Re: Reason for shipping busybox?
Date: Fri, 09 Oct 2026 02:10:01 +0200
Message-ID: <NM6lr-4miD-9@gated-at.bofh.it>
References: <NM6lr-4miD-11@gated-at.bofh.it> <NM40h-4kZw-11@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org Fri Oct 9 00:09:39 2026
Old-Return-Path: <heller@deepsoft.com>
X-Amavis-Spam-Status: No, score=-2.099 tagged_above=-10000 required=5.3
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
DKIM_VALID_EF=-0.1, MIME_QP_LONG_LINE=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
MIME-Version: 1.0
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.20)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
X-Scanned-By: MIMEDefang 3.3 on 108.161.129.198
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832311
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261009000925.C99E04C00FB@sharky5.deepsoft.com
Approved: robomod@news.nic.it
Lines: 50
Sender: robomod@news.nic.it
X-Original-Cc: debian-user@lists.debian.org
X-Original-Date: Thu, 8 Oct 2026 20:09:25 -0400 (EDT)
X-Original-Message-ID: <20261009000925.C99E04C00FB@sharky5.deepsoft.com>
X-Original-References: <179145523043.7.6135217841815416674.1678042349@aleeas.com>??<asd3DAnOBwXIO9cN@tuxteam.de>??<148c0c53-eae8-d44a-4fc4-91b1d79285cd@touchtonecorp.com>??<8bc8b339-c94c-4e38-ba29-1811a6fa1977@gitcoding.net>??<20261008182007.EEFD64C0690@sharky5.deepsoft.com>
<877bjrop34.fsf@verdier.net>