Amiga Unix — 68040 · 68060

Manual pages › System administration commands (1M)

amix-sadm-migrate(1M)

prepare the stock package database for apkg

Package: APKG, added for amigaux.

amix-sadm-migrate - prepare the stock package database for apkg

amix-sadm-migrate [ -n ]

amix-sadm-migrate brings the package database of a stock Amix 2.1 system, /var/sadm, into the shape apkg(1) and the package tools expect. Run it once as root after installing the APKG package; running it again changes nothing and says so. It:

1.
copies /var/sadm/install/contents to contents.pre-migrate once, before any other change;
2.
adds VERSION=2.1 to every /var/sadm/pkg/pkg/pkginfo that has no VERSION= line (the factory packages have none, so apkg could not compare them);
3.
creates every missing /var/sadm/pkg/pkg/install directory;
4.
sets the mode of /var/sadm/install/contents to 644 (the factory ships it writable by everyone);
5.
prints a summary of what it did.

Dry run: print what would be done and change nothing.

a directory prefixed to /var/sadm, for working on a tree other than the running system's

0 on success, also when there was nothing to do; 1 on a usage error, when /var/sadm is missing, or when the backup fails (then nothing was changed).

/var/sadm/install/contents
the installed-software database
/var/sadm/install/contents.pre-migrate
the copy made before the first change
/var/sadm/pkg/pkg/pkginfo
each installed package's parameters

apkg(1), contents-fsck(1M), contents(5)

October 2026 apkg 0.3.4