This is not intended to be run on-device, but it might be usefull as part of a backup/upgrade process.
Packages are listed that:
- are not depended on by any other package
- were not installed within 5 minutes of the kernel (which can't be upgraded without building a new image)
Obviously this is a quick hack, YMMV.
$ ssh [email protected] opkg status | python installed.py -
hostapd-utils iperf3 ...
$ python installed.py backup/usr/lib/opkg/status
hostapd-utils iperf3 ...