Backup and restore your packages

From postmarketOS Wiki

This article explains how to backup and restore your packages.

Backuping packages

On source device. Backup list of installed packages into a text file.

$ apk info > /path/to/my_apk_backup.txt

Restoring packages

On destination device. Install packages from a text file.

# while read -r line; do apk add $line; done < /path/to/my_apk_backup.txt

See also

Backup and restore your data