On 6/20/19 12:47 AM, Neil Bothwick wrote:
On Wed, 19 Jun 2019 17:16:21 -0700, Daniel Frey wrote:

I was thinking about this for a bit, and thought that maybe adding the
slot to the package in /var/lib/portage/world would work.

Every release has a separate slot, so this would never offer updates, no
matter how minor. However, you may find emerge world wanting to downgrade
if your chosen versions are no longer in the tree.

I guess I'll find out when that happens. I was just seeing if this would work.


So, using `emerge --select` and `emerge --deselect` I set up my world
file this way:

# grep -i gentoo-sources /var/lib/portage/world
sys-kernel/gentoo-sources:4.14.105-r1
sys-kernel/gentoo-sources:4.14.114
sys-kernel/gentoo-sources:4.14.83

I removed all other kernel packages manually so only those three are
installed.

However, portage still wants to install the latest gentoo-sources, even
though the generic "sys-kernel/gentoo-sources" is absent from the world
file.

Do you have anything depending on virtual/linux-sources? That pulls in
gentoo-sources with no version limits.



Ah-ha! Thanks for the tip! nvidia-drivers does indeed depend on virtual/linux-sources. I've put "virtual/linux-sources-3" in /etc/portage/profile/package.provided as a test and now it will not pull in the newest version.

I always have a kernel installed with a valid symlink so that's not an issue putting it in package.provided.

So the above does work. You can specify a slot in the world file and remove the generic "sys-kernel/gentoo-sources" and it won't pull in a newer kernel.

I check regularly with eshowkw to see what's been stabilized for gentoo-sources anyway, now I don't have to worry about portage installing a kernel version I don't need.

This way it'll only pull in a kernel version when I ask it to. Excellent.

Dan

Reply via email to