You are not logged in.

#1 2014-06-15 15:50:42

ooo
Member
Registered: 2013-04-10
Posts: 1,638

[SOLVED] specific package version for IgnorePkg?

Every once in a while there's some update that breaks something and all you can do is to roll back to previous release.
If I'm not mistaken, in such cases the "arch way" would be using IgnorePkg to prevent the package from being upgraded.

This method has the drawback that it prevents the package from being upgraded completely, and not only the broken version.
I for one would like to ignore just the broken version, and still get the forthcoming updates to see if the problem has been resolved.

So, is it/would it be possible to use specific package versions for IgnorePkg? something like:

IgnorePkg = (=xf86-video-intel-2.99.912*,>=gtk-3)

Last edited by ooo (2014-06-16 11:22:08)

Offline

#2 2014-06-15 16:21:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] specific package version for IgnorePkg?

Partial upgrades are not supported.
If you're having issues with a package, you should open a bug report somewhere. You can add a package to IgnorePkg, later remove it, try a new version and re-add it to IgnorePkg if the issue is still present.

Offline

#3 2014-06-15 17:24:23

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [SOLVED] specific package version for IgnorePkg?

If you know, that a package version would break your system, chances are, that this version is already flagged as outdated in Arch.

Offline

#4 2014-06-15 17:50:35

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: [SOLVED] specific package version for IgnorePkg?

If using kalu to be notified of upgrades, one way to handle this could be by adding the package to IgnorePkg as well as adding it on kalu's watched packages, so as to get notified whenever a new version/package is available.

Offline

#5 2014-06-15 18:09:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] specific package version for IgnorePkg?

pacman prints a warning when a new version of an ignored package is available:

$ pacman -Syu

<snip>

:: Starting full system upgrade...
warning: s-nail: ignoring package upgrade (14.6.4-1 => 14.7-1)

<snip>

Offline

#6 2014-06-15 18:46:20

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] specific package version for IgnorePkg?

In several cases there's been issue with some relatively rare user case in version x.y, that was quickly discovered and fixed in x.(y+1) version that will be released in few weeks.
In such case it would be simpler to just mask the broken version and let the fix roll in with other updates when it's due.

I know about the warning in pacman, but you still have to keep an eye for the new version, which is a minor annoyance ;)

This is really just something I got used to with portage (which of couse is a completely different game), but that's one small bit of functionality I've missed in arch.
I really just wasn't sure if this was possible or not, and it seemed like something that would be relatively trivial to implement, but I can see how it wouldn't make much sense with how arch handles packages

Offline

#7 2014-06-15 18:53:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] specific package version for IgnorePkg?

It's not currently available in pacman, but you can script it using e.g. expac.

Offline

#8 2014-06-16 11:21:41

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] specific package version for IgnorePkg?

karol wrote:

It's not currently available in pacman, but you can script it using e.g. expac.

Okay, thanks smile
didn't know about expac. Not exactly what I wanted but we'll see

thanks everybody for your input

Offline

Board footer

Powered by FluxBB