Automatic pkg download before sysupgrade?

I have two Linksys E8450 routers setup in a 802.11s mesh using OpenWRT snapshots.

I'm currently using a snapshot on them and want to sysupgrade both without the mesh failing. I can generate a list of packages I have installed, and have them installed after I upgrade, but that requires an internet connection, which doesn't exist without the mesh being up.

Has anybody written a script to automatically take the opkg output that lists installed packages, then download the current version of those packages, save them in a place that will be backed up and saved during the sysupgrade, and then install those packages first after the sysupgrade using the locally downloaded copies?

Is there a way to have opkg check for a local copy before trying to download? And does it make sense to cache the files that opkg updates using opkg update such that they are saved across the sysupgrade?

Just don't want to duplicate work if somebody has already done this...

1 Like

You are describing what auc and luci-app-attendedsysupgrade do when they update your system. They both scan for user-installed packages, built a new image using your current configuration and then install the new image, so no need to download, stash or install those extra packages.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.