OpenWRT : opkg upgrade (tips)

Article published the ; modified the
1 minute(s) to read

This article has 81 words.
RAW source of the article: MD

Description

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:

Code: ash

# 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:

Code: ash

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