--- categories: ['OpenWRT','System'] date: 2020-02-24T19:17:42+01:00 description: "howto upgrade packages on OpenWRT with the tool opkg!" draft: false tags: ["OpenWRT","upgrade","opkg","tips","sysadmin"] title: "OpenWRT : opkg upgrade (tips)" translationKey: "openwrt-opkg-upgrade" --- ## 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: ```sh # 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: ```sh $ for name in `sudo opkg list-upgradable | awk '{print $1}'`; do sudo opkg upgrade "${name}"; done ``` ---