<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13939</bug_id>
          
          <creation_ts>2020-06-11 08:43:08 +0000</creation_ts>
          <short_desc>Implement -a flag to upgrade all installed packages</short_desc>
          <delta_ts>2020-06-15 08:27:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucas Ramage">oxr463</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87468</commentid>
    <comment_count>0</comment_count>
    <who name="Lucas Ramage">oxr463</who>
    <bug_when>2020-06-11 08:43:08 +0000</bug_when>
    <thetext>Currently one must use the following command to upgrade all packages:

```sh
opkg list-upgradable | cut -f 1 -d &apos; &apos; | 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
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87470</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2020-06-11 13:09:34 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87484</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2020-06-15 08:27:12 +0000</bug_when>
    <thetext>Please re-open if you think this I misinterpreted the problem</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>