Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

  1. #1
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,389

    Default Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    For those who don't want recommended packages installed and use "solver.onlyRequires=true" in "zypp.conf"

    Following the recent update of libzypp to 17.15.0-1.2 seems to result in this setting being ignored.

    Bug report: https://bugzilla.opensuse.org/show_bug.cgi?id=1155105
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200211) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    13,191
    Blog Entries
    3

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Interesting.

    I have never tried to block recommends, so this won't bother me. But I am mystified by that new "solver.focus". It could use some better documentation.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,389

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by nrickert View Post
    I have never tried to block recommends, so this won't bother me.
    I use it mainly to prevent a plethora of "recommended" font packages being installed. I'm also quite content with US English so the fact that *-lang packs are also excluded is no problem...

    But I am mystified by that new "solver.focus". It could use some better documentation.
    Yes indeed...

    The only "documentation" I've found is from the comments in "zypp.conf", which outlines roughly what it does but without any real detail. "Googling" also drew a blank...
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200211) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,316
    Blog Entries
    14

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    We might face a change in zypper here. I never cared about avoiding the recommends ( to be honest, main reason is to run apps as they are intended, independent from language etc ). But ...... in /etc/zypp/zypper.conf there is an option
    # installRecommends = yes
    What happens if you change it to
    installRecommends = no
    ?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,389

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by Knurpht View Post
    ...
    # installRecommends = yes
    What happens if you change it to
    installRecommends = no
    ?
    Thanks.

    Although reading the comment above that option "Default value: follow zypp.conf(solver.onlyRequires)" I guess it may not make any difference .

    I'm away from both my TW machines (with the updated libzypp) at the moment - I'll try changing that tomorrow (20191025) and see what the outcome is.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200211) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  6. #6
    Join Date
    Sep 2012
    Posts
    5,326

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by nrickert View Post
    But I am mystified by that new "solver.focus". It could use some better documentation.
    Code:
    Package Dependencies
    ~~~~~~~~~~~~~~~~~~~~
    Software packages depend on each other in various ways. Packages usually 'require' or 'recommen
    d' other packages, but they can also 'conflict' with them. Packages may support specific hardwa
    re or language settings. Zypper uses a 'dependency solver' to find out which packages need to b
    e installed to satisfy the user's request.
    
    
    If you do not request a specific version of a package the solver will pick a reasonable one. Th
    e solvers general attitude when resolving a job is to focus on installing the best version of t
    he requested package and to add or update dependencies as they are needed. Aside from this 'Foc
    us on Job', which is the default, two other focus modes are available:
    
    
    In 'Focus on Installed' mode the solver focuses on applying as little changes to the installed 
    packages as needed. Choosing an older version of a requested package is valid if it's dependenc
    ies require less changes to the system. The solver will try to avoid updating already installed
     packages.
    
    
    In 'Focus on Update' mode the solver focuses on updating the requested package and all its depe
    ndencies as much as possible. Beware, installing a single package in this mode may easily lead 
    to a mini system update.
    
    
    For a single command the focus mode can be set using the *--solver-focus MODE* switch. Valid modes are *Job*, *Installed* or *Update*. If you want to change the default mode for your system, set [/etc/zypp/zypp.conf:solver.focus] to the desired value.

  7. #7
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,389

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by Knurpht View Post
    But ...... in /etc/zypp/zypper.conf there is an option
    # installRecommends = yes
    What happens if you change it to
    installRecommends = no
    ?
    OK. Had a chance to try this now.

    Using "installRecommends = false" in /etc/zypp/zypper.conf appears to make no difference.

    No matter if I use YaST Software Management GUI, command line "zypper in", or command line "zypper in" with the "--no-recommends" flag.


    However in trying that I've just noticed another oddity... It's only 1 of the recommended packages being erroneously installed.

    Using "digikam" as the "test" package, as it was that, together with "vlc" where I first noticed the behaviour.


    digikam has 3 recommended packages:
    Code:
    paul@Orion-15:~$ sudo zypper info --recommends digikam
    Loading repository data...
    Reading installed packages...
    
    
    Information for package digikam:
    --------------------------------
    Repository     : KDE Extra (Tumbleweed)            
    Name           : digikam                           
    Version        : 6.3.0-201.5 
    
    ...
    snip
    ...
    
    Recommends     : [3]                               
        showfoto
        digikam-lang
        marble
    
    paul@Orion-15:~$
    None of which I have installed

    If I do a forced reinstall of digikam then:
    Code:
    paul@Orion-15:~$ sudo zypper in -f digikam
    Loading repository data...
    Reading installed packages...
    Forcing installation of 'digikam-6.3.0-201.5.x86_64' from repository 'KDE Extra (Tumbleweed)'.
    Resolving package dependencies...
    
    The following NEW package is going to be installed:
      digikam-lang
    
    The following package is going to be reinstalled:
      digikam
    
    1 new package to install, 1 to reinstall.
    Overall download size: 86.2 MiB. Already cached: 0 B. After the operation, additional 22.3 MiB will be used.
    Continue? [y/n/v/...? shows all options] (y):
    zypper proposes:

    The following NEW package is going to be installed:
    digikam-lang


    If, having aborted that install, I then repeat with "--no-recommends"
    Code:
    paul@Orion-15:~$ sudo zypper in --no-recommends -f digikam
    Loading repository data...
    Reading installed packages...
    Forcing installation of 'digikam-6.3.0-201.5.x86_64' from repository 'KDE Extra (Tumbleweed)'.
    Resolving package dependencies...
    
    The following NEW package is going to be installed:
      digikam-lang
    
    The following package is going to be reinstalled:
      digikam
    
    1 new package to install, 1 to reinstall.
    Overall download size: 86.2 MiB. Already cached: 0 B. After the operation, additional 22.3 MiB will be used.
    Continue? [y/n/v/...? shows all options] (y):
    again zypper proposes:

    The following NEW package is going to be installed:
    digikam-lang


    What zypper is (correctly) not proposing to install are the 2 other recommended packages...

    So why just the language pack.


    If I repeat the above on a leap 15.1 system (pre libzypp changed behaviour) then no recommended packages are (correctly) not installed.


    Confused...
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200211) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  8. #8
    Join Date
    Sep 2012
    Posts
    5,326

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by tannington View Post
    Code:
    paul@Orion-15:~$ sudo zypper in --no-recommends -f digikam
    Loading repository data...
    Reading installed packages...
    Forcing installation of 'digikam-6.3.0-201.5.x86_64' from repository 'KDE Extra (Tumbleweed)'.
    Resolving package dependencies...
    
    The following NEW package is going to be installed:
      digikam-lang
    
    The following package is going to be reinstalled:
      digikam
    
    1 new package to install, 1 to reinstall.
    Overall download size: 86.2 MiB. Already cached: 0 B. After the operation, additional 22.3 MiB will be used.
    Continue? [y/n/v/...? shows all options] (y):
    I cannot reproduce it on 20191022. But I also do not have any extra repositories, just standard TW.

  9. #9
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,389

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by arvidjaar View Post
    I cannot reproduce it on 20191022. But I also do not have any extra repositories, just standard TW.
    So...

    Switched digikam to the standard TW repo and temporarily disabled KDE:Extra
    Code:
    paul@Orion-15:~$ sudo zypper info --recommends digikam
    [sudo] password for root: 
    Loading repository data...
    Reading installed packages...
    
    
    Information for package digikam:
    --------------------------------
    Repository     : openSUSE-Tumbleweed-Oss
    Name           : digikam                
    Version        : 6.3.0-2.2              
    Arch           : x86_64                 
    Vendor         : openSUSE               
    Installed Size : 99.8 MiB               
    Installed      : Yes                    
    Status         : up-to-date             
    Source package : digikam-6.3.0-2.2.src  
    Summary        : A KDE Photo Manager    
    Description    :                        
        digiKam is a simple digital photo management application for KDE, which
        allows you to import and organize your digital photos easily. The
        photos can be organized in albums, which can be sorted chronologically,
        by directory layout, or by custom collections. An easy-to-use interface
        that enables you to connect to your camera and preview, download, or
        delete your images, is provided.
    Recommends     : [3]                    
        marble
        showfoto
        digikam-lang
    
    paul@Orion-15:~$
    And... zypper still wants to install the (recommended) digikam-lang package:
    Code:
    paul@Orion-15:~$ sudo zypper in -f digikam
    [sudo] password for root: 
    Loading repository data...
    Reading installed packages...
    Forcing installation of 'digikam-6.3.0-2.2.x86_64' from repository 'openSUSE-Tumbleweed-Oss'.
    Resolving package dependencies...
    
    The following NEW package is going to be installed:
      digikam-lang
    
    The following package is going to be reinstalled:
      digikam
    
    1 new package to install, 1 to reinstall.
    Overall download size: 86.1 MiB. Already cached: 0 B. After the operation, additional 22.3 MiB will be used.
    Continue? [y/n/v/...? shows all options] (y): n
    paul@Orion-15:~$

    More confused
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200211) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  10. #10
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,389

    Default Re: Update of libzypp appears to have broken behaviour of solver.onlyRequires = true

    Quote Originally Posted by arvidjaar View Post
    I cannot reproduce it on 20191022. But I also do not have any extra repositories, just standard TW.
    An afterthought...

    And I'm hesitant to ask you this as you're far more knowledgable than I, but...

    You did uninstall the digikam-lang package before trying to reproduce the issue ?
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200211) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •