Azure Linux#

_images/logo-azure.png

This section covers:

  • Azure Linux 3

Preparation#

  1. Perform the Pre-installation Actions.

  2. The kernel headers and development packages for the currently running kernel can be installed with:

    # FLAVOR=$(rpm -qf --queryformat '%{NAME}' /boot/vmlinuz-$(uname -r))
    # tdnf install \
        ${FLAVOR}-devel-$(uname -r) \
        kernel-headers-$(uname -r) \
        ${FLAVOR}-drivers-gpu-$(uname -r)
    

    Note

    Azure Linux ships several kernel flavors. The release string from uname -r shows no flavor marker. A system that runs kernel-64k or kernel-hwe needs the packages for that flavor. The base kernel-* packages are not correct for it. Only one package owns /boot/vmlinuz-<release>. Thus rpm finds the flavor before the command selects the version.

    kernel-headers keeps no flavor prefix. It is the userspace UAPI package and owns nothing under /lib/modules or /usr/src.

  3. Enable the extended repository:

    # tdnf install azurelinux-repos-extended
    
  4. Choose an installation method: Local Repository Installation or Network Repository Installation.

Local Repository Installation#

Install the NVIDIA driver repository:

# tdnf 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#

  1. Enable the network repository. For x86_64:

    # wget https://developer.download.nvidia.com/compute/cuda/repos/<distribution>/<arch>/cuda-<distribution>.repo -O /etc/yum.repos.d/cuda-<distribution>.repo
    

    For sbsa:

    # wget https://developer.download.nvidia.com/compute/cuda/repos/<distribution>/sbsa/cuda-<distribution>.repo -O /etc/yum.repos.d/cuda-<distribution>.repo
    
  2. Clean DNF repository cache:

    # tdnf clean expire-cache
    

Driver Installation#

These instructions apply to both local and network installations.

# tdnf install nvidia-open

Reboot the System#

# reboot

Perform the Post-installation Actions.

Package Upgrades#

When a new version is available, a normal package update command specific for the distribution should suffice in upgrading the driver. The various differences in distributions would take care of obsolency and package switching when performing upgrades to a different branch.

When upgrading the driver to the same stream:

# tdnf update

When upgrading the driver to a different stream:

# tdnf install --allowerasing nvidia-open

This will remove any package which would have dependencies removed.