Question about owut using

If I generate "Generate archive" to use when updatening

and save "installed by user" installed packages.

owut list | tr ' ' '\n' > /etc/config/installed_packages

How to config owut then when reinstall.

Octopus.

Why, owut does exactly this for you.
It builds a custom upgrade/downgrade image with all the currently installed packages.

Yes, I know but unsure how to do it.
If eg want to move to a new router with saved settings or resett and start fresh with saved settings.

Doubt you can cross build.

The settings on one device will very likely break the other device, as names and paths to devices are usually completely different.

But, you can still replicate the installed packages pretty easily:

old-router$ owut list
< copy the output package list >

Log into the new router:

new-router$ owut upgrade --add '<paste list here>'
...
1 Like

Thanks for your answer.

Maybe I wasn't clear on what I wanted. If I want to do a full reset and recreate my configuration. Save my “backup” and "owut list" then recreate my configuration.

How should the "owut list" be when you recreate?

Should they be in a row or on new lines \n?

Probably the same as the owut list shown, in a row.

new-router$ owut upgrade --add '<paste list here>'

Octopus

Config can be mostly imported, but preferably by hand.

You can also use firmware-selector to paste the list of packages, and request a custom image.

1 Like

Okey thanks.

Just tested and seems working.

openwrt-25.12.0-5a058e7eccee-mediatek-filogic-glinet_gl-mt6000-squashfs-sysupgrade

I only see this:

/builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/init.d/vsftpd: line 8: /lib/functions.sh: No such file or directory
./etc/init.d/vsftpd: line 8: /lib/functions.sh: No such file or directory

After that upload backup and then we are back agin.

Octopus

I've seen this functions.sh error in other arches too, no idea why it's happening, but if it works, it works.

1 Like

Yeah, like @frollic said, the Firmware Selector is the easiest solution as that is the default format for the owut list output.

If you do end up using owut upgrade, all whitespace is considered the same, so you can do things like this:

$ cat adds
nmap
ndptool
dnsmasq-full

$ cat removes
dnsmasq

$ owut upgrade  --add "$(cat adds)"  --remove "$(cat removes)"
...
2 Likes