zypper: Recommended packages ignored when Installing from osb, works with manual download

Hi,

I hope this is the right sub-forum. I want to install a package. Adding the respective repository and installing the package with zypper, the recommended packages are ignored and not offered for installation. Downloading the rpm manually, though, and installing it manually with zypper, the recommended and suggested packages are shown.

Is this the correct behaviour? Why is it different? I would expect the second version…
Thanks
Sebastian

On 2013-05-29 18:16, sebschub wrote:
>
> Hi,
>
> I hope this is the right sub-forum. I want to install ‘a package’
> (http://tinyurl.com/p664e63). Adding the respective repository and
> installing the package with zypper, the recommended packages are ignored
> and not offered for installation. Downloading the rpm manually, though,
> and installing it manually with zypper, the recommended and suggested
> packages are shown.
>
> Is this the correct behaviour? Why is it different? I would expect the

You would have to post here the commands you use and the results,
complete, with both command prompts, before and after. Like this:



> cer@Telcontar:~> zypper lr --details
> #  | Alias                      | Name                           | Enabled | Refresh | Priority | Type   | URI                                                                              | Service
> ---+----------------------------+--------------------------------+---------+---------+----------+--------+----------------------------------------------------------------------------------+--------
>  1 | OBS_Games                  | OBS: Games                     | Yes     | Yes     |  109     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_12.1/                   |
>  2 | OBS_KDE3                   | OBS: KDE:KDE3                  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_12.1/               |
>  3 | OBS_KDE_Distro_Stable      | OBS KDE:Distro:Stable          | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_12.1/     |
>  4 | OBS_KDE_Extra              | OBS: KDE: Extra                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.1/              |

.... clipped

> cer@Telcontar:~>



Please do it inside code tags, like I did. Advanced editor, ‘#’ button.
Posting in
Code Tags - A Guide

We need your list of repos, like the one above, but complete. Then the
command sequence you use tp add the repo, the installation sequence, etc.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Here the details. To simplify, I temporarily disabled all non-essential repositories (they are still listed, though). The important ones are the official OpenSuse repositories, the Packman repositories and my home project:

# zypper lr --details
#  | Alias                       | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                                      | Service
---+-----------------------------+------------------------------------+---------+---------+----------+--------+------------------------------------------------------------------------------------------+--------
 1 | Geo                         | Geo                                | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_12.3/                |        
 2 | R                           | R                                  | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/R:/patched/openSUSE_12.3/    |        
 3 | R_supplement                | R supplement                       | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/R:/supplement/openSUSE_12.3/ |        
 4 | Science                     | Science                            | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/science/openSUSE_12.3/                         |        
 5 | download.opensuse.org-Extra | openSUSE BuildService - KDE:Extra  | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.3/                      |        
 6 | download.opensuse.org-games | openSUSE BuildService - Games      | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_12.3/                           |        
 7 | ftp.gwdg.de-suse            | Packman Repository                 | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_12.3/                                 |        
 8 | google-earth                | google-earth                       | No      | Yes     |   99     | rpm-md | http://dl.google.com/linux/earth/rpm/stable/x86_64                                       |        
 9 | ocefpaf                     | ocefpaf                            | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_12.3/                   |        
10 | openSUSE-12.3-1.7           | openSUSE-12.3-1.7                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/oss/                                 |              
11 | opensuse-guide.org-repo     | libdvdcss repository               | No      | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/12.3/                                                     |              
12 | repo-debug                  | openSUSE-12.3-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/12.3/repo/oss/                           |              
13 | repo-debug-update           | openSUSE-12.3-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3/                                          |              
14 | repo-debug-update-non-oss   | openSUSE-12.3-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3-non-oss/                                  |              
15 | repo-non-oss                | openSUSE-12.3-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/non-oss/                             |              
16 | repo-source                 | openSUSE-12.3-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/12.3/repo/oss/                          |              
17 | repo-update                 | openSUSE-12.3-Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3/                                                |              
18 | repo-update-non-oss         | openSUSE-12.3-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3-non-oss/                                        |              
19 | sebschub                    | sebschub                           | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/sebschub/openSUSE_12.3/

Installing from the repository does not take into account the recommended and suggested packages:

# zypper in flac2all                                                                       
Loading repository data...                                                                                  
Reading installed packages...                                                                               
Resolving package dependencies...                                                                           
                                                                                                            
The following NEW packages are going to be installed:                                                       
  flac flac2all                                                                                             
                                                                                                            
2 new packages to install.                                                                                  
Overall download size: 554.1 KiB. After the operation, additional 1.6 MiB will be used.                     
Continue? [y/n/?] (y): n

However, downloading the rpm manually, everything works:

# zypper in /home/schubert/Downloads/flac2all-3.28-2.1.noarch.rpm 
Loading repository data...                                                                                  
Reading installed packages...                                                                               
Resolving package dependencies...                                                                           
                                                                                                            
The following NEW packages are going to be installed:                                                       
  flac flac2all                                                                                             
                                                                                                            
The following package is recommended, but will not be installed because it's unwanted (was manually removed before):                                                                                                    
  vorbis-tools                                                                                              
                                                                                                            
The following packages are suggested, but will not be installed:                                            
  lame nero-aac                                                                                             
                                                                                                            
2 new packages to install.                                                                                  
Overall download size: 554.1 KiB. After the operation, additional 1.6 MiB will be used.                     
Continue? [y/n/?] (y): n

(vorbis-tools were uninstalled by me for testing purposes, but obviously they would be considered)
Different versions cannot be the cause because all version so far included Recommended packages.

Thanks

On 2013-05-30 12:26, sebschub wrote:
>
> Here the details. To simplify, I temporarily disabled all non-essential
> repositories (they are still listed, though). The important ones are the
> official OpenSuse repositories, the Packman repositories and my home
> project:

> Installing from the repository does not take into account the
> recommended and suggested packages:

Ok, I see. But how is zypper to know which version of flac2all you want
installed?

You could try instead:


zypper in ~/Downloads/flac2all-3.28-2.1.noarch.rpm

Or you could give a higher priority (lower number) to your home repo.
Or, you can specify a repo with the option “–repo”.

It is in the man page :wink:


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

There is exactly one repository with flac2all, my home repository! Thus, if I don’t give any repository, the rpm is taken from my home repository. If I download the very same rpm directly from build service and install it directly with zypper giving the direct path to the rpm (see above), then the recommended packages will be evaluated. The strange thing and the reason for this posting: if I use the package from my the build service via my repository, the recommended packages are not evaluated. Thus, it is not an issue of priority or giving the correct repository.

On 2013-05-30 13:46, sebschub wrote:

> There is exactly one repository with flac2all, my home repository!
> Thus, if I don’t give any repository, the rpm is taken from my home
> repository. If I download the very same rpm directly from build service
> and install it directly with zypper giving the direct path to the rpm
> (see above), then the recommended packages will be evaluated. The
> strange thing and the reason for this posting: if I use the package from
> my the build service via my repository, the recommended packages are
> -not- evaluated. Thus, it is not an issue of priority or giving the
> correct repository.

I misunderstood, then. I thought you said that the wrong version was
installed.

This is very specific. Maybe you’d want to ask in the zypp-devel mail
list? Or the opensuse-packaging list)

> openSUSE:Communication channels: Mailing lists
> Mailinglist Archive


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

It was a bug on the server. Citing the zypp-devel mailing list:
bug in createrepo in SLE11-SP2. It’s now manually fixed on our
server, so the next time something is changed in the repo the
recommends will be back.

That’s on SUSE LInux Enterprise, not openSUSE. But, if it fixed your issues, it could have affected openSUSE as well.

I know but I assumed that createrepo is done on the build server which presumably uses SLE11-SP2. Meaning that there is actually no problem with the local openSUSE, right?

On 2013-06-07 09:56, sebschub wrote:
>
> It was a bug on the server. Citing the zypp-devel mailing list:
>
> bug in createrepo in SLE11-SP2. It’s now manually fixed on our
> server, so the next time something is changed in the repo the
> recommends will be back.

Thanks for sharing :slight_smile:

Did they cite a bug number? If so, please write it here, too.


Cheers / Saludos,

Carlos E. R.
(from oS 12.3 “Dartmouth” GM (rescate 1))

It’s bug 823610.

On 2013-06-07 10:26, sebschub wrote:
>
> Knurpht;2563245 Wrote:
>> That’s on SUSE LInux Enterprise, not openSUSE. But, if it fixed your
>> issues, it could have affected openSUSE as well.
>
> I know but I assumed that -createrepo- is done on the build server
> which presumably uses SLE11-SP2. Meaning that there is actually no
> problem with the local openSUSE, right?

Rather that, as the zypper code is shared between both distros, both have the same problem.


Cheers / Saludos,

Carlos E. R.
(from oS 12.3 “Dartmouth” GM (rescate 1))