Hello,
I am a newbie who is fairly comfortable with the Linux environment. So, I request you to be patient with my question as I am not deeply informed about Linux or the nomenclature.
At my office, we ordered a new workstation for CFD simulations and I decided to install Rocky Linux as Star-CCM+ (Third-party software) usually performs better in Linux. The software has been tested extensively and certified for certain versions of Rocky Linux (8.6, 8.8, 8.9 and 9.0, 9.2). Therefore, I went ahead and installed 9.2.
I soon realized that the kernel updates the moment I do sudo dnf update
or sudo dnf upgrade
. Since I am not sure if any repositories/libraries necessary for the software change between 9.2 and 9.3, I would like to stick to 9.2. I read a couple of suggestions on the forum, tried them out and ran into some challenges.
Method 1: Editing the dnf config file (Suggestion)
In the /etc/dnf/dnf.conf
file, I added exclude = kernel*
. This posed a problem when I wanted to install any drivers (USB WiFi adapter as the office has no LAN port). I attach below an example:
[abc@localhost ~]$ sudo dnf group install "Development Tools”
Rocky Linux 9 - BaseOS
Rocky Linux 9 - AppStream
Rocky Linux 9 - AppStream
Rocky Linux 9 - Extras
Error:
Problem 1: package glibc-devel-2.34-83.e19.12.x86_64 requires kernel-headers >= 3.2, but none of the providers can be installed
- cannot install the best candidate for the job
- package kernel-headers-5.14.0-362.24.1.e19_3.0.1.x86_64 is filtered out by exclude filtering
Problem 2: package redhat-rpm-config-201-1.e19.noarch requires kernel-srpm-macros >= 1.0-6, but none of the providers can be installed
- conflicting requests
- package kernel-srpm-macros-1.0-13.e19.noarch is filtered out by exclude filtering
Problem 3: package rpm-build-4.16.1.3-27.e19_3.x86_64 requires system-rpm-config, but none of the providers can be installed
- package redhat-rpm-config-201-1.e19.noarch requires kernel-srpm-macros >= 1.0-6, but none of the providers can be installed
- conflicting requests
- package kernel-srpm-macros-1.0-13.e19.noarch is filtered out by exclude filtering
Problem 4: package gcc-11.4.1-2.1.e19.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.x86_64 requires kernel-headers >= 3.2, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.1686 requires kernel-headers >= 3.2, but none of the providers can be installed
- conflicting requests
- package kernel-headers-5.14.0-362.24.1.e19_3.0.1.x86_64 is filtered out by exclude filtering
Problem 5: package gcc-11.4.1-2.1.e19.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
- package gcc-c++-11.4,1-2.1.e19.x86_64 requires gcc - 11.4.1-2.1.e19, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.x86_64 requires kernel-headers >= 3.2, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.1686 requires kernel-headers >= 3.2, but none of the providers can be installed
conflicting requests
- package kernel-headers-5.14.0-362.24.1.e19_3.0.1.x86_64 is filtered out by exclude filtering
Problem 6: package gcc-11.4.1-2.1.e19.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
- package Libtool-2.4.6-45.e19.x86_64 requires gcc(major) - 11, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.x86_64 requires kernel-headers >= 3.2, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.1686 requires kernel-headers >= 3.2, but none of the providers can be installed
- conflicting requests
- package kernel-headers-5.14,0-362.24.1.e19_3.0.1.x86_64 is filtered out by exclude filtering
Problem 7: package systemtap-4.9-3.el9.x86_64 requires systemtap-devel - 4.9-3.e19, but none of the providers can be installed
- package systemtap-devel-4.9-3.e19.i686 requires gcc, but none of the providers can be installed
- package systemtap-devel-4.9-3.e19.x86_64 requires gcc, but none of the providers can be installed
- package gcc-11.4.1-2.1.e19.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.x86_64 requires kernel-headers >= 3.2, but none of the providers can be installed
- package glibc-devel-2.34-83.e19.12.1686 requires kernel-headers >= 3.2, but none of the providers can be installed
- conflicting requests
- package kernel-headers-5.14,0-362.24.1.e19_3.0.1.x86_64 is filtered out by exclude filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages:
[abc@locathost ~]$ sudo dnf upgrade
Last metadata expiration check: @:00:22 ago on Mon 15 Apr 2024 02:37:38 PM CEST
Error:
Problem: package kmod-kvdo-8.2.1.6-102.e19_3.x86_64 requires kernel-core-uname-r >= 5.14.0-362.24.1.e19_3, but none of the providers can be installed
- cannot install the best update candidate for package kmod-kvdo-8.2.1.6-75.e19_2.x86_64
- package kernel-core-5.14.0-362.24.1.e19_3.0.1.x86_64 is filtered out by exclude filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages:
I guess this is normal since I excluded the kernel. But if that is the case, how can I go about installing drivers (Realtek, Nvidia) and other software (RustDesk)?
Method 2: Using the version lock plugin (Suggestion)
When I do this, sometimes a checkbox appears when I shut the workstation down (Install pending software updates) and one time I did not pay heed to it, it updated to Rocky 9.3.
Is there anyway I can lock the version on Rocky Linux? I remember I didn’t have to worry about this during my internship where I used Fedora. Even shutting down with “Install pending software updates” would not update to the next version.
Thanks in advance!