barn is what apt-get is to Debian. It ships with every MNIX image and fetches packages from this site over HTTPS. You need MNIX on a hard disk for it (setup, step 3): packages land on the writable ext2 root.
alice@mnix:~$ sudo barn update alice@mnix:~$ sudo barn install git busybox alice@mnix:~$ barn list
| Command | What |
|---|---|
barn update | fetch the package index |
barn list | all packages, * marks the installed ones |
barn search WORD | name or description contains WORD |
barn show PACKAGE | version, size, dependencies, SHA-256 |
barn install PACKAGE... | download, check, unpack, dependencies first |
barn remove PACKAGE... | delete what a package installed |
barn upgrade | newer versions of everything installed |
barn get URL [FILE|-] | download one file |
barn clean | empty the download cache |
Options: -y asks nothing, --repo URL uses
another repository, --reinstall installs the same version
again. Installing, removing, upgrading, updating and cleaning are root's
work (sudo barn ...); everybody may list, search and look.
Indexes: barn/x86_64/Packages, barn/i386/Packages. barn picks the one for its own architecture.
| Package | Version | x86_64 | i386 | What |
|---|---|---|---|---|
| busybox | 1.35.0 | 684 KB | 648 KB | BusyBox 1.35.0: ash, vi, tar, grep, sed, awk, less ... in one static binary |
| curl | 8.23.0 | 4.4 MB | 4.4 MB | curl 8.23.0: HTTP(S), FTP and more, TLS 1.3 with certificate checks (static musl build) |
| edit | 1.0 | 15 KB | 14 KB | edit: a small text editor with nano's keys (^O save, ^X exit, ^K/^U cut and paste, ^W search, undo) |
| gcc | 11.2.1-1 | 84.9 MB | 87.0 MB | GCC 11.2.1 (C, C++) with binutils 2.37 and musl 1.2.2, musl.cc native toolchain (needs musl) |
| git | 2.54.1 | 5.9 MB | 5.9 MB | git, the version control system, with HTTPS and SSH (needs musl zlib openssl openssh) |
| mnix-examples | 1.0 | 1 KB | 1 KB | C and C++ examples to try GCC with, in /home/examples |
| musl | 1.2.6 | 406 KB | 406 KB | musl C library: the dynamic loader and libc that Linux programs for musl (git, ssh, what GCC builds) use |
| openssh | 10.3_p1 | 1.4 MB | 1.4 MB | OpenSSH client: ssh, scp, sftp, ssh-keygen, ssh-agent, ssh-add (needs musl zlib openssl) |
| openssl | 3.5.9 | 2.3 MB | 2.1 MB | OpenSSL 3 libraries (libcrypto, libssl) for ssh and git (needs musl) |
| wget | 1.0 | 62 KB | 56 KB | wget for Mnix: downloads over HTTP and HTTPS, certificates always checked |
| zlib | 1.4 | 54 KB | 54 KB | zlib compression library (needs musl) |
git, openssh, musl, zlib and openssl are Alpine Linux's builds, unmodified; curl is the static build of the stunnel/static-curl project; BusyBox and GCC come from busybox.net and musl.cc; wget and edit are MNIX's own. All of them are free software under their own licenses.
The MNIX source tree builds and serves one (repo/build.py,
repo/serve.py). Point barn at it with
barn --repo http://HOST:8080/ update, or put a
repo URL line into /etc/barn.conf. A package is a
.tar.gz of the files to put below /, listed in a
Debian-style Packages file with its size, SHA-256 and
dependencies.