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

Thread: zypper repositories, priorities and a question

  1. #1
    Join Date
    Jul 2008
    Location
    Athens
    Posts
    275

    Question zypper repositories, priorities and a question

    Hallo,
    Does anybody knows if zypper ignores priorities?
    I have setup the KDE 4.11 repositories with priority 98 (instead of 99 for the rest of them), but the zypper up is not updating the KDE.
    Am I missing something here?

    Code:
     1 | Java                      | Java                         | No      | No      |   99     | http://download.opensuse.org/repositories/Java:/packages/openSUSE_12.1                                       
     2 | KDE 4.11 - Extra          | KDE 4.11 - Extra             | Yes     | No      |   98     | http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_411_openSUSE_12.3/                          
     3 | KDE 4.11 - Telepathy      | KDE 4.11 - Telepathy         | No      | No      |   98     | http://download.opensuse.org/repositories/KDE:/Unstable:/Playground:/Telepathy/KDE_Release_411_openSUSE_12.3/
     4 | KDE 4.11 Core             | KDE 4.11 Core                | Yes     | No      |   98     | http://download.opensuse.org/repositories/KDE:/Release:/411/openSUSE_12.3/                                   
     5 | KDE3                      | KDE3                         | Yes     | Yes     |   99     | http://download.opensuse.org/repositories/KDE%3a/KDE3/openSUSE_12.3                                          
     6 | LibreOffice               | LibreOffice                  | Yes     | No      |   99     | http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_12.3/                                 
     7 | Main_Repository_(NON-OSS) | Main Repository (NON-OSS)    | Yes     | No      |   99     | http://download.opensuse.org/distribution/12.3/repo/non-oss/                                                 
     8 | Main_Repository_(OSS)     | Main Repository (OSS)        | Yes     | No      |   99     | http://download.opensuse.org/distribution/12.3/repo/oss/                                                     
     9 | Main_Update_Repository    | Main Update Repository       | Yes     | Yes     |   99     | http://download.opensuse.org/update/12.3

    Code:
    ypper up
    Loading repository data...
    Reading installed packages...
    
    The following package updates will NOT be installed:
      MozillaFirefox MozillaFirefox-translations-common akonadi akonadi-runtime akregator amarok ark arts bluedevil branding-openSUSE cairo-dock cairo-tools 
      calligra-l10n-el create-resources digikam digikam-doc digikam-lang dolphin dynamic-wallpaper-branding-openSUSE fileshareset gfxboot-branding-openSUSE 
      gimp-branding-openSUSE grub2-branding-openSUSE gstreamer gstreamer-0_10 gstreamer-0_10-lang gstreamer-0_10-plugin-esd gstreamer-0_10-plugin-gnomevfs 
      gstreamer-0_10-plugins-bad gstreamer-0_10-plugins-bad-lang gstreamer-0_10-plugins-base gstreamer-0_10-plugins-base-lang gstreamer-0_10-plugins-good 
      gstreamer-0_10-plugins-good-lang gstreamer-lang gstreamer-plugins-base gstreamer-plugins-base-lang gtk2-engine-oxygen gtk2-theme-oxygen gwenview 
      kactivities4 kaddressbook kate kcalc kcharselect .....

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,729
    Blog Entries
    20

    Default Re: zypper repositories, priorities and a question

    All mine are 99

    Then just use the switcher
    This is the principle
    https://dl.dropboxusercontent.com/u/...R49_switch.png
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: zypper repositories, priorities and a question

    You have to do "dup" instead of "up".
    Code:
    zypper dup --from 2 --from 3 --from 4
    And I would more specify the URLs of the KDE repos to the correct repositories and add "KDE_Release_411_openSUSE_12.3/ to them.
    zypp it...

  4. #4
    Join Date
    Jul 2008
    Location
    Athens
    Posts
    275

    Default Απ: zypper repositories, priorities and a question

    [Offtopic]
    I never used dup for that in the past. For the moment, I have used the "Switch" from YaST, but I would prefer the CLI option.
    [/Offtopic]

    I insist. Since the KDE 4 repos have a "higher" priority, zypper have proceed to the update. Why it did not do that? Is the dup the "official" way to proceed with KDE updates?

  5. #5
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: Απ: zypper repositories, priorities and a question

    Quote Originally Posted by tpe View Post
    [Offtopic]Is the dup the "official" way to proceed with KDE updates?
    Because there is the need for a repo change you have to do dup.
    zypp it...

  6. #6

    Default Re: zypper repositories, priorities and a question

    On 08/30/2013 07:26 AM, tpe pecked at the keyboard and wrote:
    > Hallo,
    > Does anybody knows if zypper ignores priorities?
    > I have setup the KDE 4.11 repositories with priority 98 (instead of 99
    > for the rest of them), but the zypper up is not updating the KDE.
    > Am I missing something here?
    >
    >
    >


    The reason the packages are not being installed is because they require
    a vendor change (different repo). You need to manually force the repo
    change either by using zypper dup (not recommended), zypper in <package
    name w/ the version number> (use zypper in <package name> to get it) or
    use YaST to install the package. Once the package is using the different
    repo it will continue using it.

    HTH a little.

    Ken

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: zypper repositories, priorities and a question

    On 2013-08-30 15:26, tpe wrote:
    >
    > I never used dup for that in the past. For the moment, I have used the
    > "Switch" from YaST, but I would prefer the CLI option.
    >
    >
    > I insist. Since the KDE 4 repos have a "higher" priority, zypper have
    > proceed to the update. Why it did not do that? Is the dup the "official"
    > way to proceed with KDE updates?


    Priorities matter, but vendor change (or no change) takes precedence. A
    dup is one way of switching vendor, but it is rather drastic and may
    cause other problems. I prefer going to yast and switching the packages
    I want.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  8. #8
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: Re: zypper repositories, priorities and a question

    Quote Originally Posted by kensch View Post
    The reason the packages are not being installed is because they require
    a vendor change (different repo). You need to manually force the repo
    change either by using zypper dup (not recommended), zypper in <package
    name w/ the version number> (use zypper in <package name> to get it) or
    use YaST to install the package. Once the package is using the different
    repo it will continue using it.
    The switch to KDE 4.11 needs a lot of packages to change vendor. A "zypper in <package name>" does nothing than indicate that there is an update candidate available:

    Code:
    zypper in dolphin
    Loading repository data...
    Reading installed packages...
    'dolphin' is already installed.
    There is an update candidate for 'dolphin', but it is from different vendor. Use 'zypper install dolphin-4.11.0-348.3.x86_64' to install this candidate.
    Resolving package dependencies...
    
    Nothing to do.
    You need to force the install of the package with --force. But this will cause lot of messages that there are many packages that can not be installed because of vendor lock:

    Code:
    zypper in -f dolphin
    Loading repository data...
    Reading installed packages...
    Forcing installation of 'dolphin-4.11.0-348.3.x86_64' from repository 'KDE-411'.
    Resolving package dependencies...
    
    Problem: dolphin-4.11.0-348.3.x86_64 requires kdebase4-libkonq = 4.11.0, but this requirement cannot be provided
      uninstallable providers: kdebase4-libkonq-4.11.0-348.3.i586[KDE-411]
                       kdebase4-libkonq-4.11.0-348.3.x86_64[KDE-411]
     Solution 1: Following actions will be done:
      install kdebase4-libkonq-4.11.0-348.3.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install konqueror-plugins-4.11.0-348.3.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install konqueror-4.11.0-348.3.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install qt4-qtscript-0.2.0-20.2.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install libqt4-qt3support-4.8.5-322.1.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install libqt4-sql-4.8.5-322.1.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install libqt4-sql-mysql-4.8.5-324.1.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install soprano-backend-redland-2.9.3-123.3.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
      install soprano-backend-virtuoso-2.9.3-124.2.x86_64 (with vendor change)
        openSUSE  -->  obs://build.opensuse.org/KDE
     Solution 2: do not install dolphin-4.11.0-348.3.x86_64
     Solution 3: do not install dolphin-4.11.0-348.3.x86_64
     Solution 4: break dolphin-4.11.0-348.3.x86_64 by ignoring some of its dependencies
    
    Choose from above solutions by number or cancel [1/2/3/4/c] (c): c
    So for this case when many packages need vendor change the best command is " zypper dup --from $REPOSITORY" (and it is made for such cases). Sure, dup is dangerous. So you will have be careful.
    zypp it...

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: zypper repositories, priorities and a question

    On 2013-08-30 16:36, zerum wrote:
    > So for this case when many packages need vendor change the best command
    > is " zypper dup --from $REPOSITORY" (and it is made for such cases).


    No, "zypper dup" was designed for full distribution upgrade, aimed at
    the upgrade of factory from one week to the next. I know, I was there.
    After we tested it (in factory), during several cycles, with many
    reports, they "released" it.

    You can read about it in the factory mail list archive. :-)

    The usage you describe came later.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  10. #10
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,729
    Blog Entries
    20

    Default Re: zypper repositories, priorities and a question

    Once the switches are in place

    Code:
    zypper up
    is sufficient
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

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
  •