We had this a while ago in another thread, could be that that is the original source. I also use this from time to time.
Sometimes you just don't want to take over everything or want to do changes like switching from ksmbd to samba on an upgrade.
I still think, it would be a cool add-on, if "Download backup/Generate archive" could include that command line. I would not need auto restore of packages, just having this list being auto-generated as textfile part of the backup archive file as a convenience helper.
Yeah, I've thought it would be nice if auc had an option like -w ("why" or "what"), showing everything it was going to do as sh commands or at least something cuttable'n'pasteable bits to build a customized updater script.
There's only one problem with this: it doesn't work.
If you've used an attended sysupgrade build to install your firmware, then all of the user-installed packages have exactly the same date stamp as everything else. Maybe it should filter on '^Status:.*user'? That doesn't look right, either...
Thanks, I've been using a variant on your script for about a week now and it works quite well. My version just selects the top-level ones (unless I set an option to log everything).
...
count=$(echo "$deps" | wc -w)
if $log_all || [ "$count" -eq 0 ] ; then
...