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. :o)

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

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?

right click on it in Yast and select

Protected - Do not modify.

That will keep that package from updating

Taboo can work to mark a specific one that you don’t want to install on your system.

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?

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?


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

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

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! :o)

On Sat, 16 Aug 2008 11:26:03 GMT
horseman uk <horseman_uk@no-mx.forums.opensuse.org> wrote:

>
> 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! :o)
>
>

If you’ll right click on the tray applet, choose ‘configure applet…’,
you’ll find an option for "Show available upgrades when…’.

Enable that, and you’ll get a second tab showing, which displays packages to
be updated, while the first tab shows security patches.

I also enable “Always show detailed view” since I want to know what’s being
updated, not just the fact that there are updates.

When you get notified of updates/patches available (icon changes), click the
tray applet, review the current tab’s information, click ‘select all’ if
needed, choose the other tab, do the same… click ‘ok’… and off it goes.

{Grin} Taaa Daaa!

Loni


L R Nix
lornix@lornix.com

Thanks, Loni. You are exactly right and that works perfectly! By changing a couple of settings that you suggested I can use the tray applet to do what I originally intended and avoid updating the packages that I want left alone. Brilliant! :o)

On Sun, 17 Aug 2008 20:16:03 GMT
horseman uk <horseman_uk@no-mx.forums.opensuse.org> wrote:

>
> Thanks, Loni. You are exactly right and that works perfectly! By
> changing a couple of settings that you suggested I can use the tray
> applet to do what I originally intended and avoid updating the packages
> that I want left alone. Brilliant! :o)
>
>

Glad to help!

Loni


L R Nix
lornix@lornix.com