SDB:Bijwerken met wijziging van leverancier

(Doorverwezen vanaf SDB:Vendor change update)
Ga naar: navigatie, zoeken
Dit artikel verklaart het concept van bij een leverancier blijven en levert informatie over hoe het standaard gedrag te wijzigen.


Overzicht

Versie: 11.2+Het volgende is van toepassing op openSUSE beginnend bij de 11.2 vrijgave.

De pakketbeheerder Zypp gebruikt het concept bij een leverancier blijven. Dit betekent dat wanneer u uw systeem bijwerkt, reeds geĆÆnstalleerde pakketten zullen niet worden bijgewerkt naar een nieuwere versie, als de nieuwere versie wordt geleverd door een andere leverancier.

Dit artikel is nog maar gedeeltelijk vertaald. Als u mee wilt helpen met vertalen lees dan Wiki vertalen naar het Nederlands.

Advantages of vendor stickyness:

  • You don't risk accidentally replacing stable versions of installed packages with experimental versions from a different repository when updating.
  • You won't risk packages ping-ponging between different repositories every time you update, when the same package exists in more than one repository.

Disadvantages of vendor stickyness:

  • Available updates requiring a vendor change are somewhat hidden in YaST
  • Updating/changing a package to a different vendor requires a bit more work
  • Now and then the package manager will ask you if you want to allow vendor change, which can be annoying, scary or confusing.

Performing Vendor change updates

These are the different methods you can use to perform vendor change updates.

Single package Vendor change

Using YaST

Search for the package you want to update, and then go to the Versions tab and select the version you want to install.

YaST single package vendor change

Using zypper

Install the package with zypper specifying the version you want, example:

zypper install 'amarok=2.3.1'

Or by specifying a repository:

zypper install --from [repository] [package]

Full repository Vendor change

Using YaST

If you want to switch all installed packages to the versions in a specific repository, open the Repositories tab, select the desired repository and click on Switch system packages to the versions in this repository

YaST full repository vendor change

Using zypper

You can switch vendor for all packages in a repository using zypper too:

zypper dup --from [repository]

Allowing Vendor change in general

Allowing Vendor change for selected repositories

You can define a list of repositories having different "vendors" as equivalent by creating a file in the /etc/zypp/vendors.d/ directory with a similar content:

[main]

vendors = suse,opensuse,obs://build.suse.de,Packman,http://packman.links2linux.de
You can find the vendor with YaST ("Versions" tab) or the command line "zypper if <package>".
  • You can use any file name, but each file in this directory reflects a group of equivalent vendors.
  • Libzypp makes an string comparision (like strncmp, case-insensitive) whereas the beginning of the strings are compared only.e.G. vendor "opensuse11.0" is compatible to "openSUSE".

Disabling Vendor stickiness

If you wish you can disable vendor stickyness completely - in this case the package manager will not ask permission to change vendor for packages, and updating will just install whatever package has the highest version number, regardless of where it comes from.

In /etc/zypp/zypp.conf set

solver.allowVendorChange = true

Now zypper up will install the newest versions available from any vendor. And YaST will mark packages where an update is available with blue text, even if the update is from a different vendor.