Installation of Intel oneAPI suite of compilers on Ubuntu Linux

Intel has recently changed their business model. Their suite of compilers, debuggers, toolkits, and libraries are given free of cost for personal or academic use. Here I explain how to install them on Ubuntu linux. All of these softwares are activated using a single source command.


Make sure that you have the following packages already installed on your ubuntu machine.

  1. cmake
  2. pkg-config
  3. build-essential

If they are not installed, you can install using the following command:

sudo apt update
sudo apt -y install cmake pkg-config build-essential

Intel Repository Public Key

Get the Intel Repository public key and add it to your apt sources keyring so the packages will be trusted by ubuntu.

# use wget to fetch the Intel repository public key
# add to your apt sources keyring so that archives signed with this key will be trusted.
# remove the public key

Configure apt client to use Intel repository

echo "deb all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list


sudo add-apt-repository "deb all main"

Install all the packages or selected packages.

All basic compilers (Fortran, C, C++, and Python)

sudo apt install intel-basekit

HPC toolkits

sudo apt install intel-hpckit

IoT (internet of things) toolkits

sudo apt install intel-iotkit

AI (Artificial Intelligence) analytics toolkits

sudo apt install intel-aikit

Rendering toolkit

sudo apt install intel-renderkit

After Installation

After you have installed the oneAPI kits, they can be activated using the following command written in the ~/.bashrc file.

For all users (root access)

. /opt/intel/oneapi/

For single user

. ~/intel/oneapi/

Ravindra Shinde
Ravindra Shinde
Research Scientist

I am a theoretical and computational condensed matter physicist and quantum chemist. I have around 10 years of research experience, with 6 years in scientific code development. I have authored 16 research articles, 1 book, and peer-reviewed 25 manuscripts.