Manual pages › System administration commands (1M)
amix-sadm-migrate(1M)
prepare the stock package database for apkg
Package: APKG, added for amigaux.
NAME
amix-sadm-migrate - prepare the stock package database for apkg
SYNOPSIS
amix-sadm-migrate [ -n ]
DESCRIPTION
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.
OPTIONS
- -n
- Dry run: print what would be done and change nothing.
ENVIRONMENT
- SADM_ROOT
- a directory prefixed to /var/sadm, for working on a tree other than the running system's
EXIT STATUS
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).
FILES
- /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
SEE ALSO
| October 2026 | apkg 0.3.4 |