2 (Optional) Installing DebugInfo Packages

You can optionally install *-debuginfo packages to add extra DWARF debugging information in generated core dumps. They're intended for development purposes only, so we recommend that you only install them in development environments.

Before installing *-debuginfo packages, enable the Oracle Linux 9 debuginfo repository by creating the /etc/yum.repos.d/debuginfo.repo file with root privileges and the following contents:

[debuginfo]
name=Oracle Linux 9 Debuginfo Packages
baseurl=https://oss.oracle.com/ol9/debuginfo/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
sudo dnf update -y

For more information, see Oracle Linux: Managing Software on Oracle Linux.

  1. If you're running Oracle Linux with the Unbreakable Enterprise Kernel (UEK), install the kernel-uek-debuginfo package by using the dnf command:
    sudo dnf install -y kernel-uek-debuginfo-$(uname -r)

    If you're running Oracle Linux with the Red Hat Compatible Kernel (RHCK), install the kernel-debuginfo package instead:

    sudo dnf install -y kernel-debuginfo-$(uname -r)

    Run the install command each time the kernel is updated through the package manager. The DebugInfo package is only functional when it matches the running kernel, and it's not replaced automatically when a newer kernel version is installed on the system.

  2. Use the package manager to search for DebugInfo packages to install:
    dnf search *-debuginfo
The selected *-debuginfo packages are installed.