barn, the MNIX package manager

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

Commands

CommandWhat
barn updatefetch the package index
barn listall packages, * marks the installed ones
barn search WORDname or description contains WORD
barn show PACKAGEversion, size, dependencies, SHA-256
barn install PACKAGE...download, check, unpack, dependencies first
barn remove PACKAGE...delete what a package installed
barn upgradenewer versions of everything installed
barn get URL [FILE|-]download one file
barn cleanempty 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.

How packages are checked

Packages

Indexes: barn/x86_64/Packages, barn/i386/Packages. barn picks the one for its own architecture.

PackageVersionx86_64i386What
busybox1.35.0684 KB648 KBBusyBox 1.35.0: ash, vi, tar, grep, sed, awk, less ... in one static binary
curl8.23.04.4 MB4.4 MBcurl 8.23.0: HTTP(S), FTP and more, TLS 1.3 with certificate checks (static musl build)
edit1.015 KB14 KBedit: a small text editor with nano's keys (^O save, ^X exit, ^K/^U cut and paste, ^W search, undo)
gcc11.2.1-184.9 MB87.0 MBGCC 11.2.1 (C, C++) with binutils 2.37 and musl 1.2.2, musl.cc native toolchain (needs musl)
git2.54.15.9 MB5.9 MBgit, the version control system, with HTTPS and SSH (needs musl zlib openssl openssh)
mnix-examples1.01 KB1 KBC and C++ examples to try GCC with, in /home/examples
musl1.2.6406 KB406 KBmusl C library: the dynamic loader and libc that Linux programs for musl (git, ssh, what GCC builds) use
openssh10.3_p11.4 MB1.4 MBOpenSSH client: ssh, scp, sftp, ssh-keygen, ssh-agent, ssh-add (needs musl zlib openssl)
openssl3.5.92.3 MB2.1 MBOpenSSL 3 libraries (libcrypto, libssl) for ssh and git (needs musl)
wget1.062 KB56 KBwget for Mnix: downloads over HTTP and HTTPS, certificates always checked
zlib1.454 KB54 KBzlib 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.

Your own repository

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.