YUM/DNF/Zypper
You can install Intel oneAPI packages using either the YUM (DNF) or Zypper package managers, depending on your Linux distribution.
Pre-installation Steps
Check the System Requirements for your toolkit to make sure that your OS is supported:
Use this command to identify your OS version:
# Redhat, Fedora, CentOS and related more /etc/redhat-release # Ubuntu, Debian, others more /etc/lsb-release
If you plan to use Intel GPU, install the Intel GPU drivers.
If you are on a company intranet or behind a firewall, set the http_proxy and https_proxy environment variables to allow YUM/DNF/Zypper access the repository servers using HTTPS protocol.
Set up the repository:
If using YUM/DNF:
Create the YUM or DNF repo file in the /temp directory as a normal user:
tee > /tmp/oneAPI.repo << EOF [oneAPI] name=Intel® oneAPI repository baseurl=https://yum.repos.intel.com/oneapi enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB EOF
Move the newly created oneAPI.repo file to the YUM/DNF configuration directory /etc/yum.repos.d:
sudo mv /tmp/oneAPI.repo /etc/yum.repos.d
If using Zypper:
Add the Intel oneAPI repository public key with the following command:
sudo zypper addrepo https://yum.repos.intel.com/oneapi oneAPI
By adding this new repository, Zypper automatically imports the public repo key. For some cases rpm might require explicit key import by:
rpm --import https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
Install Package
Get the name of a toolkit package that you need to install from the list of Intel oneAPI packages. Write down or copy your package name for future reference.
Install the needed package with the following command:
sudo {yum|dnf|zypper} install <package_name>
For example, to install the Intel® oneAPI Base Toolkit package from YUM, use:
sudo yum install intel-basekit
Installation is complete! For next steps, refer to the Get Started Guide for your toolkit:
Upgrade Toolkit/Component
You can upgrade toolkit or component package to the latest version using the following instructions:
Toolkit: {yum|dnf|zypper} upgrade <toolkit package>
For example, to upgrade the Intel oneAPI Base Toolkit package to the latest version, use the following command:
# If using YUM: sudo yum upgrade intel-basekit # If using DNF: sudo dnf upgrade intel-basekit # If using Zypper: sudo zypper upgrade intel-basekit
Component: {yum|dnf|zypper} upgrade <component package>
For example, to upgrade the Intel Distribution for GDB* package, use the following command:
# If using YUM: sudo yum upgrade intel-oneapi-dpcpp-debugger # If using DNF: sudo dnf upgrade intel-oneapi-dpcpp-debugger # If using Zypper: sudo zypper upgrade intel-oneapi-dpcpp-debugger
List of Intel® oneAPI Packages
Toolkit Packages
The following toolkits and associated versions are available for installation via YUM repositories:
Toolkit Name |
64-bit Meta Package Name (default) |
32-bit Meta Package Name* |
---|---|---|
Intel® oneAPI Base Toolkit |
intel-basekit |
intel-basekit-32bit |
Intel® HPC Toolkit |
intel-hpckit |
intel-hpckit-32bit |
Intel® Rendering Toolkit |
intel-renderkit |
intel-renderkit-32bit |
* - only required if you deploy 32-bit applications
Runtime Library Packages
The oneAPI repository provides runtime library packages. Install these packages on systems where you run oneAPI applications but do not do development, compilation, or runtime profiling. The following runtime library packages are available:
oneAPI runtime libraries package, which is a superset of all runtimes for oneAPI components:
64-bit: intel-oneapi-runtime-libs
32-bit: intel-oneapi-runtime-libs-32bit
Component runtime library packages. For instructions on how to get the list of all available standalone runtime packages, see List Standalone Runtime Library Packages.