Bug 13939

Summary: Implement -a flag to upgrade all installed packages
Product: [Yocto Project Subprojects] opkg Reporter: Lucas Ramage <oxr463>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED NOTABUG QA Contact:
Severity: enhancement    
Priority: Undecided    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

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