Author Topic: Kernel how to stop upgrade  (Read 5882 times)

constantius

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Kernel how to stop upgrade
« on: Thu Oct 07 11:07:57 2021 »
Hello. How to stop kernel from being upgraded.
I mean for example exclude in fedora dnf or ignorepkg in pacman arch.
Is there a similar manner in nutyx?

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: Kernel how to stop upgrade
« Reply #1 on: Fri Oct 08 08:00:38 2021 »
Hi Constantius

Officially it's not possible to "blacklist" packages in NuTyX. It leads to a broken system in 99 % of the cases because broken API.

I assume you must have a very good reason for stopping the kernel to be update. So what  I can propose you is to make the kernel package (temporarly) invisible for cards. You set the folder of the kernel packag info unvisible.

If we talk of kernel package for example:

Code: [Select]
sudo mv /var/lib/pkg/DB/kernel /var/lib/pkg/DB/.kernel
Cards will forget about the kernel package, but you can still change back by revert the above command.

Code: [Select]
sudo mv /var/lib/pkg/DB/.kernel /var/lib/pkg/DB/kernel
Thierry

constantius

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Kernel how to stop upgrade
« Reply #2 on: Mon Oct 11 14:01:48 2021 »
Thanks for your reply. I used to stop upgrading kernel in different old computer with old nvidia card and nvidia driver. When i dont want neauvoux driver... Nutyx right now i have on nuc intel pentium j5005 cpu and intel gpu. So it is no problem. But your proposition is courius. Best regards.

rems

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Kernel how to stop upgrade
« Reply #3 on: Thu Nov 04 20:23:30 2021 »
Hi, in Nutyx, you have many kernel versions. If you want only kernel 5.10 for example, you have kernel-510 at disposal. With that, the kernel will be always 5.10 but have upgrades for minor versions