So I was looking for a way to update packages on LEDE firmware and I came across this from Openwrt https://wiki.openwrt.org/doc/techref/opkg
Basically it says that its not recommended to upgrade packages but instead install newer firmware version, this is correct? What do other users do?
Upgrading all packages might break stuff according to documentation. However, I have always kept all packages up-to-date and have never run into any issues myself. Any downside to upgrading packages this way if you experience no issues?
But you might want to wait running that command until you know for sure that it is okay to update all packages. That I have been doing it successfully doesn't mean it is good practice
Flash space consumption in /overlay is naturally the first downside, but is likely not a major issue in modern routers with lots of flash.
More serious issues can arise if you try to upgrade the deepest core packages, like busybox, ubus, ubox etc., which may affect e.g. sysupgrade functionality. Normally there is nothing special, but sometimes there are intertwined version dependencies, which could leave you stuck without resetting and sysupgrade capability (but even then the failsafe mode should still work, naturally).
Fair enough, dont want to break something that i cant fix, just wondering what happens if a big bug is found on one of the applications, does the project then just create a new version?
Yeah but then I wonder if i could even tell if an update broke something, ill have a look at what needs updating and go from there. I remember Openwrt has a stable release and a nighly build, does LEDE have the same? Also is there a way to tell if a particular update is intertwined with other packages?
There have occasionally been some brief problems when a library received a major update and packages that depend on it weren't "bumped" in version, but generally it has been pretty good over the last couple years.
Yes, there are nightly builds off master and the packages for the "stable" branch are rebuilt on a reasonably frequent basis. https://openwrt.org/downloads
okay, but if I were to flash the OEM firmware back to the router would I then use the “squashfs-factory.bin”. I'm just asking because I always wondered
factory.bin has header/wrapper/packaging that the OEM flash routine accepts. So, you use the factory version always when you flash from OEM firmware. Otherwise the factory version has similar functionality as the sysupgrade version.
I think that the Openwrt sysupgrade routine should reject the factory version as it has different packaging.
Ps.
Openwrt and LEDE as the same thing after the recent merge. LEDE source code continued under the Openwrt name. There is currently the stable 17.01 build and then also the daily buildbot snapshot from master.