OpenWRT : opkg upgrade (tips)

Article published the ; modified the
One minute to read

This article has 79 words.
RAW source of the article:
Commit version: d52797e


OpenWRT has a native tool to manage package: opkg.

But, by default, there are not plan to upgrade easily all packages, even upgrade option exists.

This is the tips:

# for name in `opkg list-upgradable | awk '{print $1}'`; do opkg upgrade "${name}"; done

Or, if you you have created a user who has the right to use the sudo command:

$ for name in `sudo opkg list-upgradable | awk '{print $1}'`; do sudo opkg upgrade "${name}"; done