upac is the Comrun7 package manager, rewritten from C to Wand for portability to Linux-like environments, including UTMS7 (non-Linux OS with Linux-compatible syscalls).
Requires wand2c and the installed libw standard library.
wand2c main.w -o upac -fp
# or
umk buildsudo umk installupac ogr:<category>/<package> Install from official repo
upac local:<package> Install from local build file
upac -r <package> Remove package
upac -U [package] Update all or specific package
upac -s ogr:<query> Search official repo (fuzzy)
upac -s local:<query> Search local packages
upac -l List installed packages
upac -u Update package database
upac help Show this help
main.w- CLI entry pointupac.wh- shared types/constantsutil.w- common helpers, path/fs/string utilitiessysx.w- extra syscall wrappers not covered by current libwdb.w- installed package databasebuild.w- .build parsing, version/dependency helpersrepo.w- repository sync/search/loadinstall.w- fetch/build/stage/install, transaction graphremove.w- package removalsearch.w- local package searchupdate.w- package updatesarchive.w- native tar/stored-zip extraction, bounded fallback for compressed formatsnet.w- native DNS + HTTP downloader (no curl for plain HTTP URLs)
umk test
# or, after building:
./tests/run.shThe test suite uses user namespaces and bind mounts, so it does not modify host system directories. It covers CLI basics, repository install/search, file ownership tracking, conflict detection, removal, local installs, native HTTP download, and native tar extraction.
The code targets Linux syscall ABI semantics through Wand/libw syscall wrappers. For UTMS7 porting:
- Keep syscall-number-specific code isolated in
sysx.wand libwsyscallmodule. - Filesystem/process behavior assumes Linux-like syscalls:
open/read/write/stat/lstat/getdents64/fork/execve/wait4/rename/symlink/flock. - Plain
http://source downloads use the native DNS/HTTP client innet.w. HTTPS URLs still fall back tocurluntil a native TLS backend is available. - Repository sync still uses
gitfor the HTTPS GitHub repository. A local HTTP mirror can be used by pointing package URLs athttp://sources. - Compressed archives (
.tar.gz,.tar.xz,.tar.bz2, deflated ZIP) still use systemtar/unzip; plain.tarand stored.zipare extracted natively. - Build/install scripts in package
.buildfiles still execute via/bin/sh; UTMS7 should provide a compatible shell or replace command execution backend. - Paths (
/var/lib/upac,/var/cache/upac,/tmp) are centralized as constants inupac.wh.