Maintaining a good repository

Hello,

I installed restricted codecs on openSUSE 13.1 via this page](http://opensuse-community.org/), and then I noticed that the following message appears when I try to update my system:

junior@Junior:~> sudo zypper up
root's password:
Loading repository data...
Reading installed packages...


The following 84 package updates will NOT be installed:
  amarok audacity exiftool gd gegl-0_2 graphviz graphviz-gd graphviz-gnome gstreamer gstreamer-0_10 gstreamer-0_10-plugin-esd gstreamer-0_10-plugin-gnomevfs 
  gstreamer-0_10-plugins-base gstreamer-0_10-plugins-good gstreamer-plugins-bad gstreamer-plugins-base gstreamer-plugins-good hplip-hpijs hplip-sane hugin 
  icoutils ImageMagick k3b krdc lcms2 lensfun-data libbabl-0_1-0 libdjvulibre21 libgegl-0_2-0 libgstapp-0_10-0 libgstapp-1_0-0 libgstaudio-1_0-0 
  libgstbasecamerabinsrc-1_0-0 libgstcodecparsers-1_0-0 libgstfft-1_0-0 libgstinterfaces-0_10-0 libgstpbutils-1_0-0 libgstphotography-1_0-0 
  libgstreamer-0_10-0 libgstreamer-1_0-0 libgstriff-1_0-0 libgstrtp-1_0-0 libgstrtsp-1_0-0 libgstsdp-1_0-0 libgsttag-1_0-0 libgstvideo-1_0-0 libhdf5-8 
  libhdf5_hl8 libjbig2 libjbig2-32bit libjpeg62 libjpeg8 libjpeg8-32bit libjpeg-turbo liblcms2-2 liblensfun0 libmediastreamer_base3 libmediastreamer_voip3 
  libmjpegutils-2_0-0 libmtp9 libmygpo-qt1 libopenjpeg1 libopus0 libpano13-2 libpgf6 libquicktime0 libsox2 libsqlite3-0 libsqlite3-0-32bit libstrigi0 
  libxine2 libxine2-pulse mjpegtools perl-File-RandomAccess perl-Image-ExifTool python3 python3-base python-numpy rkhunter sox steam strigi 
  typelib-1_0-Gst-1_0 typelib-1_0-GstPbutils-1_0 


Nothing to do.
junior@Junior:~> 

Did I do something wrong? After installation of those codecs, I did nothing.

I remember that an admin here posted a tutorial, and on that turorial after the installation he opened YaST and changed something in the repos. Is that still needed?

My repos:

junior@Junior:~> zypper lr -d
#  | Alias                     | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                               | Service
---+---------------------------+------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------------+--------
 1 | Packman Repository        | Packman Repository                 | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/                          |        
 2 | games:tools               | games:tools                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/games:/tools/openSUSE_13.1/             |        
 3 | graphics                  | graphics                           | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/graphics/openSUSE_13.1/                 |        
 4 | home:lemmy04              | home:lemmy04                       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/lemmy04/openSUSE_13.1/            |        
 5 | libdvdcss repository      | libdvdcss repository               | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/13.1/                                              |        
 6 | nVidia Graphics Drivers   | nVidia Graphics Drivers            | Yes     | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/13.1/                                         |        
 7 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | No      | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GSA-H10A_1E1A19D75083,/dev/sr0 |        
 8 | repo-debug                | openSUSE-13.1-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.1/repo/oss/                    |        
 9 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1/                                   |        
10 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1-non-oss/                           |        
11 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/non-oss/                      |        
12 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/oss/                          |        
13 | repo-source               | openSUSE-13.1-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.1/repo/oss/                   |        
14 | repo-update               | openSUSE-13.1-Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                         |        
15 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1-non-oss/                                 |        
junior@Junior:~>

No you did nothing that just reflect that some package are form different repos and maybe there are newer ones on a repo that is not the current vendor for that package.

openSUSE now remember the repo (vendor) that a package is installed from and only take updates from that vendor

If you look at one of those packages in yast and look at the version tab at bottom right you will that that the installed package came from openSUSE and that there is a newer version in packman.

So is there a way to fix it, and get the newest version?

Here’s a screenshot. I can select newer versions for each program, but I don’t know how to do so for everything.

http://s9.postimg.org/dtazxwydb/snapshot4.png

Well, not necessarily newer, but with a higher version or revision number.
But at least the revision number (which specifies in fact how often a package has been rebuilt) has no meaning whatsoever when comparing packages between different repos, so you should better just ignore it.

There is nothing to fix.
That’s just a informational message by zypper, that there would be a package with a higher version/revision in a different repo.
Whether you want to switch to that version/revision you have to decide for yourself on a case-by-case basis.

The only real way to prevent that message is to remove all additional repos… :wink:

Most of the packages in your list seem to be part of Packman though, in those case you should make sure to have the Packman version installed, regardless of the version/revision (because of the additional codec support).
So maybe do a full Vendor change upgrade to Packman, if you haven’t done so already:
http://en.opensuse.org/SDB:Vendor_change_update#Full_repository_Vendor_change
Or check those packages on a one-by-one basis, as said already.

For your k3b example you shouldn’t do anything. You have the Packman version installed, which you need if you want to have k3b-codecs (i.e. support for encoding/decoding audio files).
The standard OSS repo does contain k3b in the same version (2.0.2) but a higher revision (29.1.3 vs. 18.31), but this is not newer obviously…

And to stress it again: ignore the revision number when comparing packages from different repos. Only the version is meaningful, but may not be your only factor to decide which package you want.

You can do it in mass in Yast

In menu Packages-All Packages-Update if newer version available

Won’t that make updates to their respective software unavailable?
For example, I installed the nvidia drivers and I was prompted to subscribe to that repository. If I remove that repo, I suppose I won’t get any more updates to my drivers. Or I don’t need to subscribe and yet I will receive updates to the software installed?

Thank you very much :slight_smile:

Turns out wolfi323 was right. I
I followed** this guide **](https://forums.opensuse.org/entry.php/126-openSUSE-12-3-Multi-media-and-Restricted-Format-Installation-Guide)and it has the same procedure to switch system packages. Now the output is way better:

junior@Junior:~> sudo zypper up
Loading repository data...
Reading installed packages...


The following package update will NOT be installed:
  k3b 


Nothing to do.
junior@Junior:

My switch to openSUSE is near :slight_smile:
Just have to figure out what to do with k3b.

My repos:

junior@Junior:~> zypper lr -d
#  | Alias                     | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                               | Service
---+---------------------------+------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------------+--------
 1 | Packman Repository        | Packman Repository                 | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/                          |        
 2 | libdvdcss repository      | libdvdcss repository               | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/13.1/                                              |        
 3 | nVidia Graphics Drivers   | nVidia Graphics Drivers            | Yes     | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/13.1/                                         |        
 4 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | No      | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GSA-H10A_1E1A19D75083,/dev/sr0 |        
 5 | repo-debug                | openSUSE-13.1-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.1/repo/oss/                    |        
 6 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1/                                   |        
 7 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1-non-oss/                           |        
 8 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/non-oss/                      |        
 9 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/oss/                          |        
10 | repo-source               | openSUSE-13.1-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.1/repo/oss/                   |        
11 | repo-update               | openSUSE-13.1-Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                         |        
12 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1-non-oss/                                 |        
junior@Junior:~> 

junior@Junior:~> sudo zypper dup
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...


Nothing to do.
junior@Junior:~> 



Of course not.
This was not meant as serious advise what to do (note the smiley :wink: ). But it would be the only way to really get rid of that message.

Thank you very much :slight_smile:

But be aware that this (“Update if newer version is available”) will have absolutely no effect on that zypper message, as it does the same as “zypper up” and WILL NOT install those updates just like zypper.

I already told you: NOTHING!
Ignore the message in this case.

You may switch k3b to the openSUSE version to get rid of that message (and uninstall k3b-codecs as a consequence), but then you will not be able to encode/decode audio files from/to MP3 f.e. So you cannot create an AudioCD out of MP3 files (or similar restricted codecs).

junior@Junior:~> sudo zypper dup
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...

Nothing to do.
junior@Junior:~>

You should NEVER use “zypper dup”, unless you want to upgrade to the next openSUSE version (or are using Factory or Tumbleweed).
This can break your system, and may hinder your multimedia experience as it might switch your Packman packages to the standard openSUSE versions without full codec support.

Hi wolfi323. I didn’t follow the “update if newer version” advice because I knew there were something else to do, in this case the tutorial I linked explains what I forgot in this +1 year away from openSUSE.

I will do nothing with that message. In fact, 11 minutes after my last post I tried to edit it and say that I actually have nothing to do/worry about. And I only did “zypper dup” because that was a test system install :smiley: I either update from YaST or “zypper up”.

Actually the “Update if newer version is available” will to the update across venders. I tried it recently and all those will not update messages are gone/ Except for KB3 but that is because I skipped it there are some package version mismatch at the moment in the 12.3 packman repo.

No, it will NOT.
Unless you enabled “Allow Vendor Change” in YaST’s menu or in /etc/zypp/zypp.conf of course.

Does on 12.3 maybe different on 13.1

hmmm Allow vendor change is checked here must have done that some time in the past.