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

Thread: How to lock a package permanently?

  1. #1

    Default How to lock a package permanently?

    Hi all,

    There is one little thing in YaST that I just can't figure out. I often let the package manager do its thing and then select Package --> All Packages --> Update if newer version available. Of course, this updates all my packages (and I have quite a few). So far, so good. The problem is that one package (KRename) keeps updating to a development stream which frankly doesn't work well at all. So, I select the 'Versions' tab on the package and regress it to the stable stream. The trouble is that every time I refresh all my packages it gets updated to the latest dev stream. How can I make it stay on the version I select without having to deselect it EVERY TIME I decide to update my system?

    Any help is gratefully received. )

    Rich.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: How to lock a package permanently?

    Quote Originally Posted by horseman uk
    Hi all,

    There is one little thing in YaST that I just can't figure out. I often
    let the package manager do its thing and then select Package --> All
    Packages --> Update if newer version available. Of course, this updates
    all my packages (and I have quite a few). So far, so good. The problem
    is that one package (KRename) keeps updating to a development stream
    which frankly doesn't work well at all. So, I select the 'Versions' tab
    on the package and regress it to the stable stream. The trouble is that
    every time I refresh all my packages it gets updated to the latest dev
    stream. How can I make it stay on the version I select without having
    to deselect it EVERY TIME I decide to update my system?

    Any help is gratefully received. )

    Rich.
    Hi
    Have a look at the man page for zypper, the section titled 'Package
    Locks Management' should get you sorted.

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 6:54, 4 users, load average: 0.08, 0.17, 0.25
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,158

    Default Re: How to lock a package permanently?

    I thought hat right clicking on the package in YaST > Software > Software Management and setting it to "Taboo -- Never Install" would do this. Or am I naive?
    Henk van Velden

  4. #4

    Default Re: How to lock a package permanently?

    right click on it in Yast and select

    Protected - Do not modify.

    That will keep that package from updating

  5. #5

    Talking Re: How to lock a package permanently?

    Quote Originally Posted by hcvv View Post
    I thought hat right clicking on the package in YaST > Software > Software Management and setting it to "Taboo -- Never Install" would do this. Or am I naive?
    Taboo can work to mark a specific one that you don't want to install on your system.

  6. #6

    Default Re: How to lock a package permanently?

    Thanks for the suggestions but I've tried all those before and none of them work as you'd expect. If you select 'Protected - Do Not Modify' and then 'Update if newer version available' it immediately flags the package for updating so that doesn't work. If you select 'Taboo' then the icon doesn't change at all and it still tries to update.

    Any other ideas?

  7. #7

    Default Re: How to lock a package permanently?

    Further to the above, I've looked at the zypper man pages and tried the command:

    'zypper addlock krename'

    Then the command 'zypper locks' shows:
    linux-hkth:/home/richard # zypper locks
    # | Name | Type | Repository
    --+------------+---------+-----------
    1 | gcc41-java | package | (any)
    2 | krename | package | (any)

    Launch YaST and the package still tries to update... *sigh*

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,864
    Blog Entries
    15

    Default Re: How to lock a package permanently?

    Quote Originally Posted by horseman uk
    Further to the above, I've looked at the zypper man pages and tried the
    command:

    'zypper addlock krename'

    Then the command 'zypper locks' shows:
    linux-hkth:/home/richard # zypper locks
    # | Name | Type | Repository
    --+------------+---------+-----------
    1 | gcc41-java | package | (any)
    2 | krename | package | (any)

    Launch YaST and the package still tries to update... *sigh*
    Hi
    That may be because it's a patch that is being applied, what happens if
    you lock the patching as well?

    Code:
    zypper addlock -t patch krename
    
    You may wish to try a zypper update?
    
    zypper ref
    zypper lu
    zypper up
    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 12:35, 4 users, load average: 0.11, 0.14, 0.09
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  9. #9
    Join Date
    Jun 2008
    Location
    Oklahoma, US
    Posts
    822

    Default Re: How to lock a package permanently?

    On Fri, 15 Aug 2008 23:46:03 GMT
    horseman uk <horseman_uk@no-mx.forums.opensuse.org> wrote:

    >
    > Thanks for the suggestions but I've tried all those before and none of
    > them work as you'd expect. If you select 'Protected - Do Not Modify'
    > and then 'Update if newer version available' it immediately flags the
    > package for updating so that doesn't work. If you select 'Taboo' then
    > the icon doesn't change at all and it still tries to update.
    >
    > Any other ideas?
    >
    >


    If you mark it "Protected - Do not modify", and then let the system work as
    intended, doing updates through the tray-applet, or through the yast based
    "online update", or through "zypper update"... it'll work fine and not update
    your selections as desired.

    When you right click and select 'update if newer available'... you're
    overriding things. So yast rightly assumes that you want to update things.
    Use the update applications as intended, all will be good.

    Loni

    --
    L R Nix
    lornix@lornix.com


  10. #10

    Default Re: How to lock a package permanently?

    I tried the 'zypper addlock -t patch krename' and it still tries to update it. I think that Loni is right and that the option 'Update if newer version available' overrides these settings completely. I've always used that option because it's the only way I've found to update all the packages on my system at once. The tray applet doesn't seem to pick up all changes to packages, just security patches. I can let the tray applet do its thing and then run YaST and see a swathe of more packages to be updated when I use the option above. I've not played with 'zypper update' or the 'Online Update' which I assume to be some sort of system update, only making changes to the core components. After setting the package to protected neither of the zypper update nor the online update do anything - which is good. That means they're not trying to update KRename and there's nothing else to update. I'll have to play with it for a couple more days and see what happens.

    Thanks for all the help! )

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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