Is it possible to update the opkg updates in the software section collectively with a single command via SSH or interface? There are too many packages manually, one by one.
auc or owut, never update packages one by one.
or luci-app-attendedsysupgrade
With apk you probably can.
Why? I update everything
From a package manager point of view, probably.
From a packaging point of view, no. Not much has changed there, yet. Library coinstallability, soname tracking and symbol versioning is still lacking (and you still run into flash size constraints and 'funny' interactions between r/o-rootfs and the overlay mounted later), nor are there things like update-initramfs. We're still at the very beginning of apk's tenure in OpenWrt - and backportability to 24.10.x and 23.05.x will prevent exploiting the deep end of apk's new capabilities for at least 2 more years to come, let alone the mindset-, tooling- and manpower change on the packager side.
From a hardware point of view, neither. Have fun with in-place upgrading kernel (bootloader interactions) or libc.
Fireworks guaranteed.
You can with opkg too, but ssh restarting in your face mid update is a safe way to learn failsafe mode.
Can string together a few commands to do it. After doing an update in the UI and seeing a pile of packages with updates available and deciding to update them all:
opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
Not always a good idea to just update everything however - some bad package updates can slip in sometimes or trivial updates that aren't really needed can consume flash space with little benefit.
This very command had been responsible for many soft-bricked routers. I don’t recommend ever using it.
Upgrading packages (via the CLI opkg upgrade
command or the LuCI Upgrade...
button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.