<?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>12964</bug_id>
          
          <creation_ts>2018-10-17 10:00:47 +0000</creation_ts>
          <short_desc>Support &apos;don&apos;t install this package&apos; option during install</short_desc>
          <delta_ts>2018-10-17 16:39:48 +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>0.3.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Ross Burton">ross.burton</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81888</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-10-17 10:00:47 +0000</bug_when>
    <thetext>dnf supports -x to exclude packages from the operation.  For example during a rootfs construction:

$ dnf install rpm -x python3-core
[...]
Error:
 Problem 1: conflicting requests
  - nothing provides python3-core needed by dnf-2.7.5-r0.corei7_64
 Problem 2: conflicting requests
  - nothing provides python3-core needed by rpm-1:4.14.2-r0.corei7_64

The same can be done with dpkg by using pins and setting a -1 priority.

Can something similar be added to opkg?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81891</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-10-17 16:36:58 +0000</bug_when>
    <thetext>Opkg already has a flag to do that (--add-exclude). In the following example, a DEPENDS on b:

[adelcast@delcastillo3 tests]$ opkg -o /tmp/opkg --add-exclude b install a

Collected errors:
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - nothing provides b needed by a-1.0.all
 * 
 * Solution 1:
 *   - do not ask to install a package providing a

[adelcast@delcastillo3 tests]$ opkg -o /tmp/opkg install a
Installing b (1.0) on root
Downloading file:/tmp/opk/b_1.0_all.opk.
Installing a (1.0) on root
Downloading file:/tmp/opk/a_1.0_all.opk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81892</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-10-17 16:39:48 +0000</bug_when>
    <thetext>I looked at the source and everything to verify it didn&apos;t exist before filing this...  :(</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>