Install DTrace

The following instructions provide steps to install DTrace on different Oracle Linux releases and to verify that the installation was successful.

Install DTrace on Oracle Linux 10

  1. Enable the yum repository.

    If running on an x86 platform, enable the ol10_UEKR8 yum repository for the system.

    sudo dnf config-manager --enable ol10_UEKR8

    Note:

    Oracle releases UEK and DTrace packages in the baseos repository for aarch64 platforms. You don't need to enable any other repositories to access the DTrace packages for aarch64 platforms.

  2. Install DTrace.

    Install the dtrace package.

    sudo dnf install -y dtrace

Install DTrace on Oracle Linux 9

  1. Enable the yum repository.

    If running on an x86 platform, enable the ol9_UEKR7 yum repository for the system.

    sudo dnf config-manager --enable ol9_UEKR7

    Note:

    Oracle releases UEK and DTrace packages in the baseos repository for aarch64 platforms. You don't need to enable any other repositories to access the DTrace packages for aarch64 platforms.

  2. Install DTrace.

    Install the dtrace package.

    sudo dnf install -y dtrace

Install DTrace on Oracle Linux 8

  1. Enable the yum repository.

    If running on an x86 platform, enable either the ol8_UEKR6 or ol8_UEKR7 yum repository for the system.

    For example, run:

    sudo dnf config-manager --enable ol8_UEKR7

    Note:

    Oracle releases UEK and DTrace packages in the baseos repository for aarch64 platforms. You don't need to enable any other repositories to access the DTrace packages for aarch64 platforms.

  2. Install DTrace.

    Install the dtrace package.

    sudo dnf install -y dtrace

Install DTrace on Oracle Linux 7

WARNING:

Oracle Linux 7 is now in Extended Support. See Oracle Linux Extended Support and Oracle Open Source Support Policies for more information.

Migrate applications and data to Oracle Linux 8, Oracle Linux 9, or Oracle Linux 10, as soon as possible.

  1. Enable the ol7_UEKR6 yum repository.

    For example, if you have yum-utils installed, run:

    sudo yum-config-manager --enable ol7_UEKR6
  2. Install DTrace.

    Install the dtrace and libdtrace-ctf packages:

    sudo yum install -y dtrace libdtrace-ctf

Verify the DTrace Installation

Check that DTrace is installed to the correct location and verify the DTrace version.

  1. Confirm DTrace is installed into /usr/sbin/dtrace.
    ls -lah /usr/sbin/dtrace
  2. Display the DTrace version number.
    dtrace -V

    The output looks similar to:

    dtrace: Oracle D 2.0