Installing specific kernel and nvidia driver?

I’m going to install manjaro-cinnamon-21.2.2-minimal-220123-linux515.iso. I have my reasons to install that one.

However, I also want specific version of the kernel and of the nvidia driver which Manjaro doesn’t seem to have. I have ALL the necessary packages to achieve that (gcc, gcc-libs, binutils, linux, linux-headers as well as these packages: lib32-nvidia-utils libxnvctrl dkms nvidia-dkms nvidia-settings nvidia-utils), so basically the packages I have are completely independent.

The $1 mil question is: which packages exactly I should remove from Manjaro, after the OS installation is completed? I want specific kernel and driver versions (which I have - downloaded from the Arch repository), so answers like “update everything like a crazy person” don’t work for me.

That already sounds very much like an XY problem — looking for a solution for a perceived problem, not for the actual problem. You will be getting more helpful advice if you were to tell us what exactly you wish to achieve, and why.

That said… :backhand_index_pointing_down:

Well, it’s the minimal edition, so there will be very little — if anything at all — to delete.

I can understand that you’d want a more recent kernel than 5.15 — which is the kernel on that ISO — and then maybe you can remove that kernel (and whatever Nvidia modules it comes with) after installing the newer kernel (and associated Nvidia modules), but that’ll be about it, I think.

Do however bear in mind that you may run into conflicts while upgrading regarding certain package versions that do not correspond to the versions in the Manjaro repositories.

Also note that custom kernels will not automatically get updated by pacman or pamac.

2 Likes

I am sceptical how good this will function on a rolling release distro. How will you update that thing? Or if you do not want to update, why Manjaro/Arch/Rolling release. Definitely an XY problem, since that does not make sense.

2 Likes

If I understand you correct - you want to convert a Manjaro Linux to Arch Linux.

That process has been documented many years ago by Jonathon Fernyhough (now deceased).

I rewrote the guide back in october 2019 - and it should be valid. You can find it as part of my notes-and-bookmarks repo.

You will have to amend the guide slightly for your specific purpose - but it should be doable.

Example

bashrc-manjaro
linux510
linux510-headers
manjaro-application-utility
manjaro-documentation-en
manjaro-firmware
manjaro-hello
manjaro-icons
manjaro-keyring
manjaro-release
manjaro-settings-manager
manjaro-system
manjaro-zsh-config
mhwd
mhwd-amdgpu
mhwd-ati
mhwd-db
mhwd-nvidia-340xx
mhwd-nvidia-390xx
mhwd-nvidia-418xx
mhwd-nvidia-430xx
mhwd-nvidia-435xx
mhwd-nvidia-440xx
pacman-mirrors

I wanna install kernel 6.11.9 and nvidia-dkms 555.58. As I already said - I have all the necessary packages to do it. I just need to know which pre-installed packages are in conflict with these:

gcc, gcc-libs, binutils, linux, linux-headers, lib32-nvidia-utils, libxnvctrl, dkms, nvidia-dkms, nvidia-settings, nvidia-utils,

so that I can remove the conflicting packages before installing all the listed ones.

That’s not a supported kernel. Your system would by definition be vulnerable to attacks.

No need to remove anything if you install the custom packages with “-U --asexplicit”, e.g. :backhand_index_pointing_down:

cd /path/to/packages
sudo pacman -U --asexplicit *.pkg

If you want to live (even more) dangerously, then you could also add the “--overwrite="*"” option.

No, it won’t. Trust me on that.

Even if I install them “as explicit”, that would still leave the pre-installed packages to hang unused as bloatware. I prefer to remove them and “pacman -Rdd” should do the job.

I’m sorry, but I don’t find that a credible claim. I’ve been around long enough to know that’s not true.

No, they would be overwritten by your custom packages, since you are installing with “-U”, and “--asexplicit” has nothing to do with that. It simply makes sure that your custom packages would not get removed because of dependency issues when removing other packages.

The best reason to stop trusting someone, if they don’t provide evidence of their claims and tell you to “trust them on this.”

Kernel 6.11.xx has been EOL for more than a year already. It’s not supported, not by Manjaro, neither by Arch Linux, not even by the kernel development team.

Edit:

But at the end of the day, it’s your machine and you can do as you wish.

3 Likes

I’m afraid your request is not supported by a rolling release distribution such as Manjaro.

Kernels 6.6 (LTS) and 6.1 (LTS) remain available and supported for another year (6.6), and two years (6.1), respectively, if either of these are an option. :eyes:

Otherwise, I can only suggest that a point release distribution such as Debian might be more forgiving toward unsupported customisations.

Regards.

3 Likes

I don’t understand what your problem is to tell me what I wish to know. That experiment will either be succesful or it won’t be. I have my reasons to want an older version of Manjaro and of kernel/driver. It’s my computer, it’s Linux and I’m starting to wonder where did the freedom of Linux to do whatever you want it went. That freedom clearly isn’t present in Manjaro, cuz you’re defending with claw and teeth an outdated version which I’m going to experiment with.

As for the security, I have other measures in places that prevent a remote attack, but I don’t feel the need to explain myself about something irrelevant to the main question.

Let me explain in simpler terms.

You can do whatever you like with your machine, but what you propose will not be supported by Manjaro. That’s all that was said, and remains true.

I note that @linux-aarhus has provided a link to information that might be useful for your experiment. Whether it is sufficient for your needs, or not, I can’t say.

What I can say, and already have said, is that it will not be a supported configuration; no support will be generally/officially offered via the forum for unsupported customisations.

Consider it informational, as intended.

Regards.

1 Like

The freedom is certainly present, but what you are seeking to do is beyond the support scope of Manjaro. We can only offer support for Manjaro as Manjaro was conceived and intended to be used, i.e. as a curated rolling-release distribution that is kept up-to-date.

Experimentation — and especially with such great emphasis on secrecy regarding the motives, along with the “Trust me, I know best” attitude — of which we know from experience that you most certainly won’t — is beyond the scope of the official Manjaro support forum.

Your experiment by definition puts your system in an unsupported state, and unsupported means unsupported — including by us. Please respect that.

3 Likes