KylinOS#
This section covers:
KylinOS 11
Preparation#
Perform the Pre-installation Actions.
The kernel headers and development packages for the currently running kernel can be installed with:
# dnf install kernel-devel-$(uname -r) kernel-headers
Choose an installation method: Local Repository Installation or Network Repository Installation.
Local Repository Installation#
Install the NVIDIA driver repository:
# dnf install https://developer.download.nvidia.com/compute/nvidia-driver/<driver-version>/local_installers/nvidia-driver-local-repo-<distribution>-<driver-version>-1.0-1.<arch>.rpm
where <driver-version> is the NVIDIA driver version
Network Repository Installation#
Enable the network repository. For
x86_64:# dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/<distribution>/<arch>/cuda-<distribution>.repo
For
aarch64:# dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/<distribution>/sbsa/cuda-<distribution>.repo
Clean DNF repository cache:
# dnf clean expire-cache
Driver Installation#
These instructions apply to both local and network installations.
Open Kernel Modules
# dnf install nvidia-open
Proprietary Kernel Modules
# dnf install cuda-drivers
Compute-only (Headless) and Desktop-only (no Compute) Installation#
It’s possible to install the driver without all the desktop components (GL, EGL, Vulkan, X drivers, and so on) to limit the footprint and dependencies on the system. With the same logic it’s possible to install a desktop system without any compute component.
Note
The components excluded at installation time can always be added at a later stage. This will pull in all the additional dependencies required.
Compute-only System#
Open Kernel Modules
# dnf install nvidia-driver-cuda kmod-nvidia-open-dkms
Proprietary Kernel Modules
# dnf install nvidia-driver-cuda kmod-nvidia-latest-dkms
Desktop-only System#
Open Kernel Modules
# dnf install nvidia-driver kmod-nvidia-open-dkms
Proprietary Kernel Modules
# dnf install nvidia-driver kmod-nvidia-latest-dkms
Reboot the System#
# reboot
Perform the Post-installation Actions.
Package Upgrades#
If DNF locking is configured on the sytem, please adjust the configuration or remove the lock entirely. Please refer to the DNF 4 section of the Version locking chapter for more information.
When upgrading the driver, whether configured to a version locked branch or the latest available, the command to execute is always the same; what matters is the DNF version lock configuration:
# dnf update
When switching from proprietary kernel modules to open kernel modules:
# dnf install nvidia-open --allowerasing
This will remove any package which would have dependencies removed.