Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can you keep the oldest stable version of a slotted pkg?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mf2
n00b
n00b


Joined: 14 Jun 2007
Posts: 45

PostPosted: Mon Sep 23, 2024 6:09 am    Post subject: Can you keep the oldest stable version of a slotted pkg? Reply with quote

So I am using gentoo-sources as a kernel on my system, which is fine. However, updates to the kernel come to fast for my taste. Since the package offers various slots, is it possible to tell emerge somehow to keep it on the oldest slot and to only upgrade it if that slot is being removed?

Example: Let's say I am on gentoo-sources-5.10.224. When that slot leaves the portage tree, on a world update I want it to go to 5.10.226, not 6.11.0. Can this be achieved?

Of course I could mask the newer versions and lift the masks gradually, but I fear that I will miss updates then and stay on a deprecated kernel for too long.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1889

PostPosted: Mon Sep 23, 2024 6:44 am    Post subject: Reply with quote

Most (not all) of what you want here is to pin to a particular release series. We tried changing the slots in gentoo-sources a little while ago but people didn't like that. At some point I plan to propose something like a virtual for specific series (at least LTS) which pins to each one so people can emerge that and get that behaviour (or something along those lines).

For now, you can do something like this in package.mask:
sys-kernel/gentoo-sources

Then in package.unmask:
=sys-kernel/gentoo-sources-5.10*
Back to top
View user's profile Send private message
mf2
n00b
n00b


Joined: 14 Jun 2007
Posts: 45

PostPosted: Mon Sep 23, 2024 8:38 am    Post subject: Reply with quote

Thank you!
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3385
Location: Canada

PostPosted: Mon Sep 23, 2024 4:29 pm    Post subject: Reply with quote

sam_ wrote:
Most (not all) of what you want here is to pin to a particular release series. We tried changing the slots in gentoo-sources a little while ago but people didn't like that. At some point I plan to propose something like a virtual for specific series (at least LTS) which pins to each one so people can emerge that and get that behaviour (or something along those lines).

For now, you can do something like this in package.mask:
sys-kernel/gentoo-sources

Then in package.unmask:
=sys-kernel/gentoo-sources-5.10*



I guess you can simply mask

>=sys-kernel/gentoo-sources-5.11.0

to remain on 5.10 and its updates without dealing with unmask file
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum