Bug 13939 - Implement -a flag to upgrade all installed packages
Summary: Implement -a flag to upgrade all installed packages
Status: RESOLVED NOTABUG
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: Other Multiple
: Undecided enhancement
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-06-11 08:43 UTC by Lucas Ramage
Modified: 2020-06-15 08:27 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Ramage 2020-06-11 08:43:08 UTC
Currently one must use the following command to upgrade all packages:

```sh
opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
```

See: https://unix.stackexchange.com/a/400232/247886

Instead, I would like to implement an -a,--all flag as follows:

```sh
opkg upgrade -a
```
Comment 1 Alejandro del Castillo 2020-06-11 13:09:34 UTC
to upgrade all packages you can run run opkg upgrade without a target (just opkg upgrade). I believe that will do what you expect -a will do?
Comment 2 Alejandro del Castillo 2020-06-15 08:27:12 UTC
Please re-open if you think this I misinterpreted the problem